Monday, January 30, 2012

Re: Django models

On Mon, Jan 30, 2012 at 09:53:18PM +0800, Stanwin Siow wrote:
>but once my terminal creates the model classes do i have to copy it into my app's model.py?

yes, you will need to copy the output to your models.py. you may
need to edit it to put the models in order so that dependencies
like foreign keys in the model definitions are satisified. see
the link i posted earlier about inspectdb for details on what you
may need to edit.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment