Commit b74466cf authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

urls: Update to Django 2.x

parent a8419362
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
# Includes and other remaining stuff # Includes and other remaining stuff
urlpatterns.extend([ urlpatterns.extend([
url(r'^admin/', include(admin.site.urls)), url(r'^admin/', admin.site.urls),
url(r'^devel/', include(devel.urls)), url(r'^devel/', include(devel.urls)),
url(r'^feeds/', include(feeds_patterns)), url(r'^feeds/', include(feeds_patterns)),
url(r'^groups/', include(packages.urls_groups)), url(r'^groups/', include(packages.urls_groups)),
...@@ -100,8 +100,8 @@ ...@@ -100,8 +100,8 @@
# Authentication # Authentication
urlpatterns.extend([ urlpatterns.extend([
url(r'^login/$', auth_views.login, {'template_name': 'registration/login.html'}, name='login'), url(r'^login/$', auth_views.LoginView.as_view(template_name='registration/login.html'), name='login'),
url(r'^logout/$', auth_views.logout, {'template_name': 'registration/logout.html'}, name='logout'), url(r'^logout/$', auth_views.LogoutView.as_view(template_name='registration/logout.html'), name='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