Commit 07c781c6 authored by Tom Kunze's avatar Tom Kunze
Browse files

server/urls: Django auth_views no longer have an attribute for the login and logout view.

parent f3cc3617
......@@ -47,14 +47,16 @@ urlpatterns = [
),
url(
r'^tutor/login/?$',
auth_views.login,
{'template_name': 'admin/login.html'},
auth_views.LoginView.as_view(
template_name='admin/login.html',
),
name='tutor_login',
),
url(
r'^tutor/logout/?$',
auth_views.logout,
{'next_page': 'tutor_login'},
auth_views.LogoutView.as_view(
next_page='tutor_login',
),
name='tutor_logout',
),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment