question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Python27\Lib\multiprocessing\forking.py", line 381, in main self = load(from_parent) File "C:\Python27\Lib\pickle.py", line 1384, in load return Unpickler(file).load() File "C:\Python27\Lib\pickle.py", line 864, in load dispatch[key](self) File "C:\Python27\Lib\pickle.py", line 1096, in load_global klass = self.find_class(module, name) File "C:\Python27\Lib\pickle.py", line 1130, in find_class __import__(module) File "C:\Source\GitHub\octopus\server\venv\lib\site-packages\django_q\cluster.py", line 24, in <module> from django_q import tasks File "C:\Source\GitHub\octopus\server\venv\lib\site-packages\django_q\tasks.py", line 13, in <module> from django_q.models import Schedule, Task File "C:\Source\GitHub\octopus\server\venv\lib\site-packages\django_q\models.py", line 16, in <module> class Task(models.Model): File "C:\Source\GitHub\octopus\server\venv\lib\site-packages\django\db\models\base.py", line 110, in __new__ app_config = apps.get_containing_app_config(module) File "C:\Source\GitHub\octopus\server\venv\lib\site-packages\django\apps\registry.py", line 247, in get_containing_app_config self.check_apps_ready() File "C:\Source\GitHub\octopus\server\venv\lib\site-packages\django\apps\registry.py", line 125, in check_apps_ready raise AppRegistryNotReady("Apps aren't loaded yet.") django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.

pip list

Package Version


amqp 2.2.2 arrow 0.12.1 asgiref 1.1.2 attrs 17.2.0 autobahn 17.9.3 Automat 0.6.0 backports.functools-lru-cache 1.5 BeautifulSoup 3.2.1 beautifulsoup4 4.6.0 billiard 3.5.0.3 blessed 1.15.0 celery 4.1.0 Cerberus 1.2 certifi 2017.7.27.1 channels 1.1.6 chardet 3.0.4 constantly 15.1.0 coreapi 2.3.3 coreschema 0.0.4 daphne 1.3.0 Django 1.11.13 django-celery-results 1.0.1 django-crispy-forms 1.6.1 django-debug-toolbar 1.9.1 django-enumchoicefield 0.9.0 django-extensions 1.9.8 django-filter 1.0.4 django-guardian 1.4.9 django-picklefield 1.0.0 django-q 0.9.4 django-reset-migrations 0.3.1 django-rest-swagger 2.1.2 django-split-settings 0.3.0 djangorestframework 3.8.2 djangorestframework-jwt 1.11.0 drf-flex-fields 0.3.4 encryptor64 1.2.0 enum34 1.1.6 future 0.16.0 gunicorn 19.7.1 hyperlink 17.3.1 idna 2.6 incremental 17.5.0 itypes 1.1.0 Jinja2 2.9.6 kombu 4.1.0 Markdown 2.6.8 MarkupSafe 1.0 mongo-py-logger 1.8.0 mysqlclient 1.3.9 newrelic 2.96.0.80 ntlm-auth 1.2.0 openapi-codec 1.3.2 ordereddict 1.1 packaging 16.8 pip 18.0 psycopg2-binary 2.7.4 pyCLI 2.0.3 Pygments 2.2.0 PyJWT 1.5.3 pymongo 3.7.1 pyparsing 2.2.0 Pyro4 4.63 pyteamcity 0.1.1 python-dateutil 2.6.1 python-ldap 2.4.41 python-ntlm 1.0 pytz 2017.2 requests 2.18.4 requests-ntlm 1.0.0 selectors34 1.2 serpent 1.27 setuptools 40.0.0 simplejson 3.11.1 six 1.11.0 sqlparse 0.2.4 Twisted 17.9.0 txaio 2.8.2 typing 3.6.4 uritemplate 3.0.0 urllib3 1.22 vine 1.1.4 wcwidth 0.1.7 wheel 0.31.1 xmltodict 0.11.0 zope.interface 4.4.3

It works for me just if I add import django django.setup() to django_q/cluster.py

Can you help me with this issue.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
maerteijncommented, Nov 6, 2019

The Readme states Tested with: Python 3.6. 3.7 Django 1.11.x and 2.2.x

So 3.8 is not officially supported (yet).

Opening a new ticket requesting python 3.8 support would be fine I guess, but note that Django itself has no released version yet which is 3.8 compatible.

0reactions
shackercommented, Nov 11, 2019

Got it thanks. For now, we’ve decided to stick with py3.7 until Django support is official, but I’ll open a ticket here for future reference.

Read more comments on GitHub >

github_iconTop Results From Across the Web

django:django.core.exceptions.AppRegistryNotReady: Apps ...
AppRegistryNotReady : Apps aren't loaded yet. The django version on the server is 1.8.5, and the local is 1.8.1. I doubt the version...
Read more >
django.core.exceptions.AppRegistryNotReady: Apps aren't ...
Using the first option throws django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet. Full Trace Traceback (most recent call ...
Read more >
Django-error “AppRegistryNotReady: Apps aren't loaded yet
Found on stack overflow. The solution which worked for me is following import django django.setup() from myapp.models import MyModel. means ...
Read more >
django.core.exceptions.AppRegistryNotReady (Apps aren't ...
I get this error django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet when trying to start a django server with forestadmin.
Read more >
Django scripting: “AppRegistryNotReady: Apps aren't loaded ...
django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet . Don't panic! The solution is to run your application's setup() before ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found