Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. from django.contrib.auth.views import LoginView, LogoutView
  2.  
  3. class CustomLogoutView(LogoutView):
  4. next_page = '/'
  5.  
  6.  
  7. url(r'^logout/$', CustomLogoutView.as_view(), name='logout'),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement