Skip to content

Commit a0db261

Browse files
authored
Merge pull request #303 from yuta1024/fix/exmaple
support Django 2.1 in an exmaple project
2 parents b96c09d + 0636c8e commit a0db261

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example/app/urls.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
urlpatterns = [
1111
url(r'^$', TemplateView.as_view(template_name='home.html'), name='home'),
12-
url(r'^accounts/login/$', auth_views.login, {'template_name': 'login.html'}, name='login'),
13-
url(r'^accounts/logout/$', auth_views.logout, {'next_page': '/'}, name='logout'),
12+
url(r'^accounts/login/$', auth_views.LoginView.as_view(template_name='login.html'), name='login'),
13+
url(r'^accounts/logout/$', auth_views.LogoutView.as_view(next_page='/'), name='logout'),
1414
url(r'^', include('oidc_provider.urls', namespace='oidc_provider')),
1515
url(r'^admin/', admin.site.urls),
1616
]

0 commit comments

Comments
 (0)