I'm using Django 1.8, and I can't access the admin panel anymore. Here's the error :
Reverse for 'app_list' with arguments '()' and keyword arguments '{'app_label': 'my_app'}' not found. 0 pattern(s) tried: []`
my_app
is a custom app I created, and it is inside the INSTALLED_APPS
. I tried to remove it from there, remove the app folder as well.
It's not always the same app that is not found, sometimes it's another custom app, sometimes it's Django auth
app, or a third party app, it's really random.
Here's the traceback (http://dpaste.com/2W7MJV7):
Traceback:
File "/usr/local/lib/python3.4/site-packages/django/core/handlers/base.py" in get_response
132. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python3.4/site-packages/django/contrib/admin/sites.py" in wrapper
254. return self.admin_view(view, cacheable)(*args, **kwargs)
File "/usr/local/lib/python3.4/site-packages/django/utils/decorators.py" in _wrapped_view
110. response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python3.4/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
57. response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python3.4/site-packages/django/contrib/admin/sites.py" in inner
233. return view(request, *args, **kwargs)
File "/usr/local/lib/python3.4/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
57. response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python3.4/site-packages/django/contrib/admin/sites.py" in index
438. current_app=self.name,
File "/usr/local/lib/python3.4/site-packages/django/core/urlresolvers.py" in reverse
579. return force_text(iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs)))
File "/usr/local/lib/python3.4/site-packages/django/core/urlresolvers.py" in _reverse_with_prefix
496. (lookup_view_s, args, kwargs, len(patterns), patterns))
Exception Type: NoReverseMatch at /admin/
Exception Value: Reverse for 'app_list' with arguments '()' and keyword arguments '{'app_label': 'ttn'}' not found. 0 pattern(s) tried: []
Here's the main urls.py file :
from django.conf.urls import include, url
from django.core.urlresolvers import reverse_lazy
from django.contrib.auth.decorators import login_required
from django.contrib import admin
from django.views.generic import TemplateView, RedirectView
urlpatterns = [
# apps
url(r'', include('ttn.urls', namespace='ttn')),
# admin panel
url(r'^admin/', include(admin.site.urls)),
]