I have following model. class CampaignTemp(models.Model): campaign_modules = Module.objects.filter(active=True) choices = .... ... ... # other fields
I get following error when I try `python manage.py`. ... File "/home/auser/aproject/src/apps/anapp/models.py", line 35, in CampaignTemp campaign_modules = Module.objects.filter(active=True) ... django.core.exceptions.AppRegistryNotReady: Models aren't loaded yet. ... The code was written for Django1.6 and is being ported to 1.7. Any help would be appreciated. -- 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/15025122-8284-416d-b075-ebaf8483effd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.