diff --git a/django/contrib/admin/__init__.py b/django/contrib/admin/__init__.py
index 56b64fa..2499d82 100644
a
|
b
|
def autodiscover():
|
8 | 8 | not present. This forces an import on them to register any admin bits they |
9 | 9 | may want. |
10 | 10 | """ |
| 11 | import imp |
11 | 12 | from django.conf import settings |
12 | 13 | for app in settings.INSTALLED_APPS: |
13 | 14 | try: |
14 | | __import__("%s.admin" % app) |
| 15 | imp.find_module('%s.admin' % app) |
15 | 16 | except ImportError: |
16 | | pass |
| 17 | # There is no admin.py, skip it |
| 18 | continue |
| 19 | __import__('%s.admin' % app) |