33👍
✅
0👍
You don’t need to add a custom name on admin.site.urls as it already exists.
As Arpit Solanki suggested, try reversing the URL using admin namespace
{% url 'admin:index' %}
For the other URLs (with names) see django/contrib/admin/sites.py file in the Django package or reversing-admin-urls
- How to get string from a django.utils.safestring.SafeText
- How can I send e-mail from django using the google smtp server?
Source:stackexchange.com