why is logged_out.html not overriding in django registration?

后端 未结 2 1649
难免孤独
难免孤独 2020-12-09 10:12

I am using built-in django login and logout. In my Project/urls.py i have added url\'s for both login and logout.

from django.conf.urls import include, url
f         


        
2条回答
  •  孤街浪徒
    2020-12-09 10:31

    You can set to redirect it to a next page like this:

    url(r'^accounts/logout/$',auth_views.logout, name='logout', 
                               {'next_page': '/path_to_your_page/'})
    

    According to: https://docs.djangoproject.com/en/1.9/topics/auth/default/#django.contrib.auth.views.logout

    Or

     Logout
    

提交回复
热议问题