Tuesday, November 24, 2015

Re: How can I create a new table without primary key filed?

Hi, Though its a too old question, but just thought of answering because i also got the same issue
One thing you can do is first migrate(syncdb) to bdatabase and then load the data.


On Monday, 10 November 2008 16:29:37 UTC+5:30, XQ Kuang wrote:
Hi, all.

How can I create a new table without primary key in Django modeling. ?

I'm porting a old program to Django web framework. After inspect
database to modules.py and then syncdb, It create the id filed with
primary key attribute, how can I disable this feature ?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c27e5bf7-9554-4cfb-850f-024e35d3015a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment