Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Reverted [8174]. It is causing some serious breakage right now. Need …

…to investigate more.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 85af2641125dfdd141f744f37be616499108ace9 1 parent 9d3c921
Brian Rosner brosner authored
Showing with 2 additions and 5 deletions.
  1. +2 −5 django/contrib/admin/
7 django/contrib/admin/
@@ -8,12 +8,9 @@ def autodiscover():
not present. This forces an import on them to register any admin bits they
may want.
- import imp
from django.conf import settings
for app in settings.INSTALLED_APPS:
- imp.find_module("admin", app.split("."))
+ __import__("%s.admin" % app)
except ImportError:
- # there is no in app, skip it.
- continue
- __import__("%s.admin" % app)
+ pass
Please sign in to comment.
Something went wrong with that request. Please try again.