You need to call django.setup().

I can confirm, though, that using Model.objects.all() somehow sometimes 
seems to work without calling django.setup().

-- 
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+unsubscr...@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/3f04ece4-5c72-44aa-bc36-a37ecc4f47eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to