Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CipMap
CipMap
Commits
07c781c6
Commit
07c781c6
authored
Oct 18, 2021
by
Tom Kunze
Browse files
server/urls: Django auth_views no longer have an attribute for the login and logout view.
parent
f3cc3617
Changes
1
Hide whitespace changes
Inline
Side-by-side
django/server/urls.py
View file @
07c781c6
...
...
@@ -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'
,
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment