mirror of https://github.com/django/django.git
Reverted [8174]. It is causing some serious breakage right now. Need to investigate more.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8183 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
9d3c921857
commit
85af264112
|
@ -8,12 +8,9 @@ def autodiscover():
|
||||||
not present. This forces an import on them to register any admin bits they
|
not present. This forces an import on them to register any admin bits they
|
||||||
may want.
|
may want.
|
||||||
"""
|
"""
|
||||||
import imp
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
for app in settings.INSTALLED_APPS:
|
for app in settings.INSTALLED_APPS:
|
||||||
try:
|
try:
|
||||||
imp.find_module("admin", app.split("."))
|
__import__("%s.admin" % app)
|
||||||
except ImportError:
|
except ImportError:
|
||||||
# there is no admin.py in app, skip it.
|
pass
|
||||||
continue
|
|
||||||
__import__("%s.admin" % app)
|
|
||||||
|
|
Loading…
Reference in New Issue