Hello guys,
I no longer have access to my Django admin, this in all my projects, I know 
what I did to get there, but getting out would be fine in order to continue 
my projects, if you know any way to handle this, it would be good for me, 
thank you



Environment:


Request Method: GET
Request URL: http://localhost:8000/admin/login/?next=/admin/

Django Version: 4.1
Python Version: 3.8.10
Installed Applications:
['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware']


Template error:
In template 
/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/contrib/admin/templates/admin/base_site.html,
 
error at line 6
   Reverse for 'index' not found. 'index' is not a valid view function or 
pattern name.
   1 : {% extends "admin/base.html" %}
   2 : 
   3 : {% block title %}{% if subtitle %}{{ subtitle }} | {% endif %}{{ 
title }} | {{ site_title|default:_('Django site admin') }}{% endblock %}
   4 : 
   5 : {% block branding %}
   6 : <h1 id="site-name"><a href=" {% url 'admin:index' %} ">{{ 
site_header|default:_('Django administration') }}</a></h1>
   7 : {% endblock %}
   8 : 
   9 : {% block nav-global %}{% endblock %}
   10 : 

Traceback (most recent call last):
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/core/handlers/exception.py",
 
line 55, in inner
    response = get_response(request)
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/core/handlers/base.py",
 
line 220, in _get_response
    response = response.render()
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/response.py",
 
line 114, in render
    self.content = self.rendered_content
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/response.py",
 
line 92, in rendered_content
    return template.render(context, self._request)
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/backends/django.py",
 
line 62, in render
    return self.template.render(context)
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/base.py",
 
line 175, in render
    return self._render(context)
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/base.py",
 
line 167, in _render
    return self.nodelist.render(context)
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/base.py",
 
line 1005, in render
    return SafeString("".join([node.render_annotated(context) for node in 
self]))
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/base.py",
 
line 1005, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in 
self]))
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/base.py",
 
line 966, in render_annotated
    return self.render(context)
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/loader_tags.py",
 
line 157, in render
    return compiled_parent._render(context)
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/base.py",
 
line 167, in _render
    return self.nodelist.render(context)
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/base.py",
 
line 1005, in render
    return SafeString("".join([node.render_annotated(context) for node in 
self]))
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/base.py",
 
line 1005, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in 
self]))
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/base.py",
 
line 966, in render_annotated
    return self.render(context)
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/loader_tags.py",
 
line 157, in render
    return compiled_parent._render(context)
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/base.py",
 
line 167, in _render
    return self.nodelist.render(context)
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/base.py",
 
line 1005, in render
    return SafeString("".join([node.render_annotated(context) for node in 
self]))
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/base.py",
 
line 1005, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in 
self]))
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/base.py",
 
line 966, in render_annotated
    return self.render(context)
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/defaulttags.py",
 
line 322, in render
    return nodelist.render(context)
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/base.py",
 
line 1005, in render
    return SafeString("".join([node.render_annotated(context) for node in 
self]))
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/base.py",
 
line 1005, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in 
self]))
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/base.py",
 
line 966, in render_annotated
    return self.render(context)
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/loader_tags.py",
 
line 63, in render
    result = block.nodelist.render(context)
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/base.py",
 
line 1005, in render
    return SafeString("".join([node.render_annotated(context) for node in 
self]))
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/base.py",
 
line 1005, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in 
self]))
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/base.py",
 
line 966, in render_annotated
    return self.render(context)
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/loader_tags.py",
 
line 63, in render
    result = block.nodelist.render(context)
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/base.py",
 
line 1005, in render
    return SafeString("".join([node.render_annotated(context) for node in 
self]))
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/base.py",
 
line 1005, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in 
self]))
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/base.py",
 
line 966, in render_annotated
    return self.render(context)
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/defaulttags.py",
 
line 472, in render
    url = reverse(view_name, args=args, kwargs=kwargs, 
current_app=current_app)
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/urls/base.py",
 
line 88, in reverse
    return resolver._reverse_with_prefix(view, prefix, *args, **kwargs)
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/urls/resolvers.py",
 
line 803, in _reverse_with_prefix
    raise NoReverseMatch(msg)

Exception Type: NoReverseMatch at /admin/login/
Exception Value: Reverse for 'index' not found. 'index' is not a valid view 
function or pattern name.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4ce95c5f-64fa-477c-87d2-857e685c199dn%40googlegroups.com.

Reply via email to