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

fix django 1.8 AppRegistryNotReady("Apps aren't loaded yet.") #29

Merged
merged 2 commits into from Dec 4, 2015
Merged

fix django 1.8 AppRegistryNotReady("Apps aren't loaded yet.") #29

merged 2 commits into from Dec 4, 2015

Conversation

imposeren
Copy link
Contributor

when using uwsgi under django 1.8 current middleware causes error:

  File ".../venv/local/lib/python2.7/site-packages/solid_i18n/middleware.py", line 31, in __init__
    for url_pattern in get_resolver(None).url_patterns:
  File ".../venv/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 401, in url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  File ".../venv/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 395, in urlconf_module
    self._urlconf_module = import_module(self.urlconf_name)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "./multitest/urls.py", line 16, in <module>
    admin.autodiscover()
  File ".../venv/local/lib/python2.7/site-packages/django/contrib/admin/__init__.py", line 24, in autodiscover
    autodiscover_modules('admin', register_to=site)
  File ".../venv/local/lib/python2.7/site-packages/django/utils/module_loading.py", line 67, in autodiscover_modules
    for app_config in apps.get_app_configs():
  File ".../venv/local/lib/python2.7/site-packages/django/apps/registry.py", line 137, in get_app_configs
    self.check_apps_ready()
  File ".../venv/local/lib/python2.7/site-packages/django/apps/registry.py", line 124, in check_apps_ready
    raise AppRegistryNotReady("Apps aren't loaded yet.")

this pull request resolves this problem

@imposeren imposeren changed the title fix django 1.8 AppRegistryNotReady("Apps aren't loaded yet.") fix django 1.8 AppRegistryNotReady("Apps aren't loaded yet.") Nov 24, 2015
@st4lk
Copy link
Owner

st4lk commented Nov 27, 2015

Hi Yaroslav, thanks!
I'll check it soon.

@imposeren
Copy link
Contributor Author

Maybe this is only because of admin.autodiscover() in my urls that I've forgotten to remove after update to django 1.8. But I'm not sure

st4lk added a commit that referenced this pull request Dec 4, 2015
fix django 1.8 `AppRegistryNotReady("Apps aren't loaded yet.")`
@st4lk st4lk merged commit 369f8fb into st4lk:master Dec 4, 2015
@st4lk
Copy link
Owner

st4lk commented Dec 4, 2015

Thanks again, it is now in pypi v1.1.1

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

Successfully merging this pull request may close these issues.

None yet

3 participants