Monday, January 30, 2012

Re: Django models

ok got it. I read the document and it was good stuff.

Just got confused with copying pasting into my models.py. Thanks alot once again.

:)

Best Regards,

Stanwin Siow



On Jan 30, 2012, at 10:02 PM, Michael Elkins wrote:

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