Wednesday, October 1, 2014

Re: Python question about positioning of "from... import" statement

OK, I should have read the warning on the Tango with Django page section 5.8:

"When importing Django models, make sure you have imported your project's settings by that stage. If you don't, an exception will be raised. This is why we import Category and Page towards the end of the population script, rather than at the top."

--
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/64b80a37-cd4c-458b-84a8-17cd3ea891fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment