Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from django.contrib.auth.views import LoginView, LogoutView
- class CustomLogoutView(LogoutView):
- next_page = '/'
- url(r'^logout/$', CustomLogoutView.as_view(), name='logout'),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement