#25864: AppRegistryNotReady exception since update from 1.8.7 to 1.9
-------------------------------+--------------------
     Reporter:  stephanm       |      Owner:  nobody
         Type:  Uncategorized  |     Status:  new
    Component:  Uncategorized  |    Version:  1.9
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  0
-------------------------------+--------------------
 Hi,

 I have a script which worked in django 1.8
 but does no more in django 1.9, I get the exception:
 {{{django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet}}}

 Unfortunately I didn't find a hint in the release notes

 {{{#!py
 from myapp.models import MyModel1 # here is the exception
 ...
 if __name__ == "__main__":

     import django
     django.setup()
     # my code follows
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25864>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/051.09eeb60c9be9eac3ebb75f97a60c6443%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to