Whenever I click log out this error is showing
My html is:
views.py :
apps urls.py :
projects urls.py :
you need to add the specific path.
try this
<a href="{% url 'logout' %}>Logout</a>
Please read this https://docs.djangoproject.com/en/3.1/ref/urls/
also this https://docs.djangoproject.com/en/3.1/ref/templates/builtins/#url
2.1m questions
2.1m answers
60 comments
57.0k users