Opened 8 years ago
Last modified 8 years ago
#27033 closed Uncategorized
static tag causes AppRegistryNotReady errors on 1.10 — at Version 1
Reported by: | Florian Apolloner | Owned by: | nobody |
---|---|---|---|
Component: | contrib.staticfiles | Version: | 1.10 |
Severity: | Release blocker | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
See the trace:
Traceback (most recent call last): File "manage.py", line 10, in <module> execute_from_command_line(sys.argv) File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 367, in execute_from_command_line utility.execute() File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 341, in execute django.setup() 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 90, in create module = import_module(entry) File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/home/anon/.local/lib/python2.7/site-packages/easy_select2/__init__.py", line 7, in <module> from easy_select2.utils import ( File "/home/anon/.local/lib/python2.7/site-packages/easy_select2/utils.py", line 6, in <module> from easy_select2.widgets import Select2Mixin, Select2, Select2Multiple File "/home/anon/.local/lib/python2.7/site-packages/easy_select2/widgets.py", line 16, in <module> static('easy_select2/js/easy_select2.js'), File "/usr/local/lib/python2.7/dist-packages/django/templatetags/static.py", line 163, in static return StaticNode.handle_simple(path) File "/usr/local/lib/python2.7/dist-packages/django/templatetags/static.py", line 112, in handle_simple if apps.is_installed('django.contrib.staticfiles'): File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 225, in is_installed self.check_apps_ready() File "/usr/local/lib/python2.7/dist-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.
Marking as RB till we know how we want to handle it. Do we have a way to check if the app is installed without triggering app registry ready checks?
Note:
See TracTickets
for help on using tickets.