[英]How to redirect an admin user to redirect to the index page after logout from the default admin site in django?
我正在使用 Django 的默認管理儀表板作為管理員的登錄頁面。 我想將管理員從默認的 Django 管理站點重定向到索引頁面(這是所有用戶的主頁)。 我怎樣才能做到這一點?
LOGOUT_REDIRECT_URL = 'url name to redirect'
This configuration redirect on home page after successfully logout form admin panel
LOGOUT_REDIRECT_URL = '/index/'
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.