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

Django 1.7 SimpleAdminConfig use import error fix #252

Merged
merged 2 commits into from Apr 27, 2014
Jump to file or symbol
Failed to load files and symbols.
+5 −1
Diff settings

Always

Just for now

Next

Django 1.7 SimpleAdminConfig quick-and-dirty fix

  • Loading branch information...
fallenflint committed Feb 21, 2014
commit f32e13ac002b001b3af24e2bfbad2e4fb2759fd9
@@ -229,7 +229,11 @@ def _autodiscover(registry):
from django.utils.module_loading import module_has_submodule
for app in settings.INSTALLED_APPS:
mod = import_module(app)
try:
mod = import_module(app)
except ImportError, e:
#not all entries in INSTALLED_APPS are have to be modules
continue
# Attempt to import the app's admin module.
try:
before_import_registry = copy.copy(registry)
ProTip! Use n and p to navigate between commits in a pull request.