Opened 3 years ago

Closed 3 years ago

#30452 closed Cleanup/optimization (invalid)

'AppRegistryNotReady' error after Django Upgrade from 1.8 to 1.9 version

Reported by: vinay Owned by: nobody
Component: Uncategorized Version:
Severity: Release blocker Keywords: Django Upgrade, Django-1.9, Django-1.8, AppRegistryNotReady
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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()

Change History (1)

comment:1 Changed 3 years ago by Claude Paroz

Resolution: invalid
Status: newclosed

Django 1.9 is no longer supported, so unless you can reproduce a wrong behavior with a supported Django version, we won't consider this ticket.

I'd suggest to read TicketClosingReasons/UseSupportChannels.

Note: See TracTickets for help on using tickets.
Back to Top