>> 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
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,
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
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
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
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
> 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
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
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
9 matches
Mail list logo