Forums

The infamous django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.

Hi,

I'm having problems with the infamous django.core.exceptions.AppRegistryNotReady exception. I've created a virtualenv named pythree and have it listed in the Web tab. I've tried putting the recommended

import django
django.setup()

in my personal wsgi.py and in the django wsgi.py. I've tried following the instructions here and here to no avail.

you shouldn't need to call django.setup() in your wsgi file. If you remove it, can you tell where the error is coming from? Supposing you disable your apps in INSTALLED_APPS one by one, maybe that will identify where the problem is coming from?

I removed those two lines and removed a model I had manually added to INSTALLED_APPS and the error went away. Thanks!