#30452: 'AppRegistryNotReady' error after Django Upgrade from 1.8 to 1.9 version
-------------------------------------+-------------------------------------
Reporter: vinay | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: | Version:
Uncategorized | Keywords: Django Upgrade,
Severity: Release | Django-1.9, Django-1.8,
blocker | AppRegistryNotReady
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
In our process of upgrading our Django project from 1.8 to 1.9 version, we
removed all the deprecation warnings/errors according to Django-1.9
release notes.
But, after updating the Django version to 1.9 in the project's virtual
environment, we got the following error:
{{{
raise AppRegistryNotReady("Apps aren't loaded yet.")
django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.
}}}
We have many installed apps in the project and using PostgreSQL-9.5
database. We know that the apps which have model classes in it, cause this
error to occur.
The above error even occured when connecting to the database using
connection cursor:
{{{
django.db.connection.cursor().execute()
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30452>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/048.6e74a9e0892d26a9c06f3fb23998e97b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.