set: os.environ['DJANGO_SETTINGS_MODULE'] = 'yourproject.settings' (or see 
how it's done in manage.py)

On 1.7 call django.setup() first before using models.
On 1.6 or lower, you may need to call models.get_models() before using your 
models.

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/c86b5aca-e7a0-44e5-95f8-505d8e44c40a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to