Django.core.exceptions.AppRegistryNotReady: Applications not yet loaded. django 1.8

I have a problem with django 1.8. The console displays:

Traceback (most recent call last): File "manage.py", line 10, in <module> execute_from_command_line(sys.argv) File "/home/adriann/django/project_varincenti/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 351, in execute_from_command_line utility.execute() File "/home/adriann/django/project_varincenti/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 343, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/adriann/django/project_varincenti/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 177, in fetch_command commands = get_commands() File "/home/adriann/django/project_varincenti/env/local/lib/python2.7/site-packages/django/utils/lru_cache.py", line 101, in wrapper result = user_function(*args, **kwds) File "/home/adriann/django/project_varincenti/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 72, in get_commands for app_config in reversed(list(apps.get_app_configs())): File "/home/adriann/django/project_varincenti/env/local/lib/python2.7/site-packages/django/apps/registry.py", line 137, in get_app_configs self.check_apps_ready() File "/home/adriann/django/project_varincenti/env/local/lib/python2.7/site-packages/django/apps/registry.py", line 124, in check_apps_ready raise AppRegistryNotReady("Apps aren't loaded yet.") django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet. 
+5
source share
3 answers

Stackoverflow has answers to the question of how it can actually be in the application registry, but I think this is most often an indicator that something is wrong in the settings, and Django could not cope with the failure.

I had exactly the same error, just having a bad log file name in the LOGGING settings - the directory I was LOGGING did not exist, so the initialization of the logs failed.

+3
source

It looks like you are using a virtual environment.

Perhaps you have an application included under INSTALLED_APPS in settings.py , but it is not installed (for example, via pip install django-multisite ) in your virtual environment.

(I got the same error after starting using the virtual environment.)

+2
source

Today I had the same error, which is strange, because yesterday everything worked correctly, and I do not think that I changed anything. I got an error while trying to start the dev server. I recently upgraded this project to 1.8.

The solution for me was as follows: I changed my PYTHONPATH to run a script (to make sure it also points to version 1.8) of the dev server, and everything seemed to work fine.

+1
source

Source: https://habr.com/ru/post/1233427/


All Articles