Ticket #8596: __init__.py.patch

File __init__.py.patch, 578 bytes (added by tolano, 7 years ago)

django/contrib/admin/init.py modified

  • django/contrib/admin/__init__.py

     
    2525            app_path = __import__(app, {}, {}, [app.split('.')[-1]]).__path__
    2626        except AttributeError:
    2727            continue
     28        except ImportError:
     29            continue
    2830
    2931        # Step 2: use imp.find_module to find the app's admin.py. For some
    3032        # reason imp.find_module raises ImportError if the app can't be found
Back to Top