Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raise AppRegistryNotReady("Apps aren't loaded yet.") #37

Open
mohsenbastani opened this issue Mar 2, 2018 · 0 comments
Open

raise AppRegistryNotReady("Apps aren't loaded yet.") #37

mohsenbastani opened this issue Mar 2, 2018 · 0 comments

Comments

@mohsenbastani
Copy link

mohsenbastani commented Mar 2, 2018

hello.
after editing /usr/local/lib/python2.7/dist-packages/admin_tools/dashboard/dashboards.py and adding from admin_tools_stats.modules import DashboardCharts, get_active_graph
i get an error that tell me:
raise AppRegistryNotReady("Apps aren't loaded yet.")
app was installed and tables were created i i can see them in admin panel and i can create object from them and set parameters for them ... .
i use from django 1.11 and python 2.7 .both of them are updated to lastest version.
regards.

TTP/1.1" 304 0 [02/Mar/2018 10:08:05] "GET /static/admin_tools/js/jquery/jquery.dashboard.js HT TP/1.1" 304 0 [02/Mar/2018 10:08:06] "GET /static/admin_tools/js/dashboard.js HTTP/1.1" 304 0 Not Found: /favicon.ico [02/Mar/2018 10:08:06] "GET /favicon.ico HTTP/1.1" 404 10295 [02/Mar/2018 10:08:12] "GET /admin_tools_stats/dashboardstats/ HTTP/1.1" 200 111 52 [02/Mar/2018 10:08:12] "GET /jsi18n/ HTTP/1.1" 200 11084 [02/Mar/2018 10:08:13] "GET /static/admin/img/tooltag-add.svg HTTP/1.1" 304 0 [02/Mar/2018 10:08:18] "GET /admin_tools_stats/dashboardstats/add/ HTTP/1.1" 200 16505 [02/Mar/2018 10:08:19] "GET /jsi18n/ HTTP/1.1" 200 11084 [02/Mar/2018 10:08:19] "GET /static/admin/img/icon-addlink.svg HTTP/1.1" 304 0 [02/Mar/2018 10:08:32] "GET /admin_tools_stats/dashboardstatscriteria/ HTTP/1.1" 200 11255 [02/Mar/2018 10:08:32] "GET /jsi18n/ HTTP/1.1" 200 11084 [02/Mar/2018 10:08:35] "GET /admin_tools_stats/dashboardstatscriteria/add/ HTTP/ 1.1" 200 13235 [02/Mar/2018 10:08:35] "GET /jsi18n/ HTTP/1.1" 200 11084 [02/Mar/2018 10:08:52] "POST /admin_tools_stats/dashboardstatscriteria/add/ HTTP /1.1" 302 0 [02/Mar/2018 10:08:53] "GET /admin_tools_stats/dashboardstatscriteria/ HTTP/1.1" 200 13422 [02/Mar/2018 10:08:53] "GET /jsi18n/ HTTP/1.1" 200 11084 [02/Mar/2018 10:08:54] "GET /static/admin/img/icon-yes.svg HTTP/1.1" 304 0 [02/Mar/2018 10:08:54] "GET /static/admin/img/sorting-icons.svg HTTP/1.1" 304 0 [02/Mar/2018 10:09:02] "GET /admin_tools_stats/dashboardstatscriteria/ HTTP/1.1" 200 13196 [02/Mar/2018 10:09:03] "GET /jsi18n/ HTTP/1.1" 200 11084 [02/Mar/2018 10:09:05] "GET /admin_tools_stats/dashboardstats/ HTTP/1.1" 200 111 52 [02/Mar/2018 10:09:05] "GET /jsi18n/ HTTP/1.1" 200 11084 [02/Mar/2018 10:09:09] "GET /admin_tools_stats/dashboardstats/add/ HTTP/1.1" 200 16542 [02/Mar/2018 10:09:09] "GET /jsi18n/ HTTP/1.1" 200 11084 [02/Mar/2018 10:09:54] "POST /admin_tools_stats/dashboardstats/add/ HTTP/1.1" 20 0 16899 [02/Mar/2018 10:09:55] "GET /jsi18n/ HTTP/1.1" 200 11084 [02/Mar/2018 10:10:02] "POST /admin_tools_stats/dashboardstats/add/ HTTP/1.1" 30 2 0 [02/Mar/2018 10:10:03] "GET /admin_tools_stats/dashboardstats/ HTTP/1.1" 200 139 33 [02/Mar/2018 10:10:03] "GET /jsi18n/ HTTP/1.1" 200 11084 [02/Mar/2018 10:10:08] "GET /admin_tools_stats/dashboardstats/1/change/ HTTP/1.1 " 200 16808 [02/Mar/2018 10:10:08] "GET /jsi18n/ HTTP/1.1" 200 11084 [02/Mar/2018 10:10:17] "POST /admin_tools_stats/dashboardstats/1/change/ HTTP/1. 1" 302 0 [02/Mar/2018 10:10:17] "GET /admin_tools_stats/dashboardstats/ HTTP/1.1" 200 139 37 [02/Mar/2018 10:10:18] "GET /jsi18n/ HTTP/1.1" 200 11084 [02/Mar/2018 10:10:23] "GET / HTTP/1.1" 200 10313 [02/Mar/2018 10:10:27] "GET /admin_tools_stats/dashboardstats/ HTTP/1.1" 200 137 23 [02/Mar/2018 10:10:28] "GET /jsi18n/ HTTP/1.1" 200 11084 [02/Mar/2018 10:10:32] "GET /admin_tools_stats/dashboardstats/1/change/ HTTP/1.1 " 200 16808 [02/Mar/2018 10:10:33] "GET /jsi18n/ HTTP/1.1" 200 11084 Unhandled exception in thread started by <function wrapper at 0x7fbf6578eed8> Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/utils/autoreload.py", line 230, in wrapper _exception = sys.exc_info() AttributeError: 'NoneType' object has no attribute 'exc_info' Unhandled exception in thread started by <function wrapper at 0x7f76882b7500> Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/utils/autoreload.py", line 228, in wrapper fn(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/django/core/management/commands/r unserver.py", line 117, in inner_run autoreload.raise_last_exception() File "/usr/local/lib/python2.7/dist-packages/django/utils/autoreload.py", line 251, in raise_last_exception six.reraise(*_exception) File "/usr/local/lib/python2.7/dist-packages/django/utils/autoreload.py", line 228, in wrapper fn(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/django/__init__.py", line 27, in setup apps.populate(settings.INSTALLED_APPS) File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 85 , in populate app_config = AppConfig.create(entry) File "/usr/local/lib/python2.7/dist-packages/django/apps/config.py", line 94, in create module = import_module(entry) File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/usr/local/lib/python2.7/dist-packages/admin_tools/dashboard/__init__.py ", line 1, in <module> from admin_tools.dashboard.dashboards import * File "/usr/local/lib/python2.7/dist-packages/admin_tools/dashboard/dashboards. py", line 21, in <module> from admin_tools_stats.modules import DashboardCharts, get_active_graph File "/usr/local/lib/python2.7/dist-packages/admin_tools_stats/modules.py", li ne 26, in <module> from admin_tools_stats.models import DashboardStats File "/usr/local/lib/python2.7/dist-packages/admin_tools_stats/models.py", lin e 35, in <module> class DashboardStatsCriteria(models.Model): File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py", line 1 10, in __new__ app_config = apps.get_containing_app_config(module) File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 24 7, in get_containing_app_config self.check_apps_ready() File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 12 5, in check_apps_ready raise AppRegistryNotReady("Apps aren't loaded yet.") django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet. mohsen@win-t:~/ztn$ python manage.py runserver 0.0.0.0:8000 > 1.txt Unhandled exception in thread started by <function wrapper at 0x7f42ecc2e410> Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/utils/autoreload.py", line 228, in wrapper fn(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/django/core/management/commands/runserver.py", line 117, in inner_run autoreload.raise_last_exception() File "/usr/local/lib/python2.7/dist-packages/django/utils/autoreload.py", line 251, in raise_last_exception six.reraise(*_exception) File "/usr/local/lib/python2.7/dist-packages/django/utils/autoreload.py", line 228, in wrapper fn(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/django/__init__.py", line 27, in setup apps.populate(settings.INSTALLED_APPS) File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 85, in populate app_config = AppConfig.create(entry) File "/usr/local/lib/python2.7/dist-packages/django/apps/config.py", line 94, in create module = import_module(entry) File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/usr/local/lib/python2.7/dist-packages/admin_tools/dashboard/__init__.py", line 1, in <module> from admin_tools.dashboard.dashboards import * File "/usr/local/lib/python2.7/dist-packages/admin_tools/dashboard/dashboards.py", line 21, in <module> from admin_tools_stats.modules import DashboardCharts, get_active_graph File "/usr/local/lib/python2.7/dist-packages/admin_tools_stats/modules.py", line 26, in <module> from admin_tools_stats.models import DashboardStats File "/usr/local/lib/python2.7/dist-packages/admin_tools_stats/models.py", line 35, in <module> class DashboardStatsCriteria(models.Model): File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py", line 110, in __new__ app_config = apps.get_containing_app_config(module) File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 247, in get_containing_app_config self.check_apps_ready() File "/usr/local/lib/python2.7/dist-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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant