http://127.0.0.1:8000/accounts/login/
This page is created successfully and working nice:
And Problem with these pages: http://127.0.0.1:8000/accounts/logout/
This page redirect me Django Administration Pages that message to login again but I don't want this.
I have placed my HTML file in
..templates/registration/logged_out.html
And checked spelling error multiple time to see why not working.
My urls files:
from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('catalog.urls')),
path('accounts/', include('django.contrib.auth.urls')),
]
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
and my logged_out.html is:
{% extends 'base.html' %}
{% block content %}
<p>Logged out!</p>
<a href="{% url 'login' %}">Click here to login again.</a>
{% endblock %}
Can any tell me what's wrong with it? How to fix this?