Ticket #8126: r8520-admin-autodiscover.patch

File r8520-admin-autodiscover.patch, 544 bytes (added by Ivan Giuliani, 16 years ago)
  • django/contrib/admin/__init__.py

     
    1616        except ImportError:
    1717            # there is no app admin.py, skip it
    1818            continue
     19        except AttributeError:
     20            # catch and re-raise
     21            raise AttributeError, "%(app)s is not a valid application in INSTALLED_APPS" % { 'app': app }
     22
    1923        __import__("%s.admin" % app)
Back to Top