Re: How do I join two existing tables?

2013-02-24 Thread frocco
>> managed=False << Thanks for pointing that out. On Sunday, February 24, 2013 11:10:07 AM UTC-5, Johan wrote: > > You're welcome. > > You probably also want to make sure that in the class Meta options, you've > set managed=False > Otherwise you could accidentally change the database

Re: How do I join two existing tables?

2013-02-24 Thread Johan ter Beest
You're welcome. You probably also want to make sure that in the class Meta options, you've set managed=False Otherwise you could accidentally change the database definitions. All the information is here: https://docs.djangoproject.com/en/dev/howto/legacy-databases/ On Feb 24, 2013, at 5:05 PM,

Re: How do I join two existing tables?

2013-02-24 Thread frocco
Thank you On Sunday, February 24, 2013 10:00:58 AM UTC-5, frocco wrote: > > Hi, > > I have to interface with an existing php app and the key field is > character. > > paginator = > Paginator(Shopinventory.objects.exclude(list_price=0).filter(sizenum__contains=search), > > 20) > I want to

Re: How do I join two existing tables?

2013-02-24 Thread Johan ter Beest
On Feb 24, 2013, at 4:00 PM, frocco wrote: > Hi, > > I have to interface with an existing php app and the key field is character. > > paginator = > Paginator(Shopinventory.objects.exclude(list_price=0).filter(sizenum__contains=search), > 20) > I want to add to the

How do I join two existing tables?

2013-02-24 Thread frocco
Hi, I have to interface with an existing php app and the key field is character. paginator = Paginator(Shopinventory.objects.exclude(list_price=0).filter(sizenum__contains=search), 20) I want to add to the above and pull the related category. Shopcategories has a character prime key

Inserting into existing tables

2009-08-04 Thread Sean Brown
I have existing tables in a postgresql database created with existing sequences as the default values for their primary key. I am trying to interface with the database with django (i have tried with 1.0.2, 1.1 and now have django-trunk) and while it seems the model works (runserver

Re: existing tables

2007-09-04 Thread Iapain
> What can I do to reach existing tables ? Use inspectdb or write model class yourself, based on your table. if your table doesnt have "id" field then you might need to override save() and delete() methods --~--~-~--~~~---~--~~ You received this me

Re: existing tables

2007-09-04 Thread Alex Koshelev
Look this: http://www.djangoproject.com/documentation/django-admin/#inspectdb Creates django models from the existing db structure On 4 сент, 11:25, [EMAIL PROTECTED] wrote: > hello > > I am very new to django. > > What can I do to reach existing tables ? > > in examples I

existing tables

2007-09-04 Thread temiz
hello I am very new to django. What can I do to reach existing tables ? in examples I met, new tables have been created from scratch ? regards Ahmet Temiz Turkey --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google