#27033: static tag causes AppRegistryNotReady errors on 1.10
-----------------------------------------------+------------------------
               Reporter:  apollo13             |          Owner:  nobody
                   Type:  Uncategorized        |         Status:  new
              Component:  contrib.staticfiles  |        Version:  1.10
               Severity:  Release blocker      |       Keywords:
           Triage Stage:  Accepted             |      Has patch:  0
    Needs documentation:  0                    |    Needs tests:  0
Patch needs improvement:  0                    |  Easy pickings:  0
                  UI/UX:  0                    |
-----------------------------------------------+------------------------
 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 ot.

--
Ticket URL: <https://code.djangoproject.com/ticket/27033>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/051.d9ee7be67a388afa2330704516fd40a4%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to