We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Django Admin Logout is not working
redirecting to https://localhost/logout/ instead of https://localhost/admin/logout/
The text was updated successfully, but these errors were encountered:
I had to add a route in default url.py.
from django.shortcuts import redirect from django.contrib import admin from django.urls import path
urlpatterns = [ path("admin/", admin.site.urls), path("logout/", lambda request: redirect("/admin/logout", permanent=False)), ]
Sorry, something went wrong.
i have tried this from django.shortcuts import redirect from django.contrib import admin from django.urls import path
but for me it is still not working.
No branches or pull requests
Django Admin Logout is not working
redirecting to https://localhost/logout/
instead of https://localhost/admin/logout/
The text was updated successfully, but these errors were encountered: