Update urls.py because of a RemovedInDjango110Warning.
This commit is contained in:
parent
622882ada5
commit
9f86a47cce
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ from django.contrib import admin
|
|||
from django.views.generic import TemplateView
|
||||
|
||||
|
||||
urlpatterns = patterns('',
|
||||
urlpatterns = [
|
||||
url(r'^$', TemplateView.as_view(template_name='home.html'), name='home'),
|
||||
url(r'^accounts/login/$', auth_views.login, { 'template_name': 'login.html' }, name='login'),
|
||||
url(r'^accounts/logout/$', auth_views.logout, { 'next_page': '/' }, name='logout'),
|
||||
|
@ -12,4 +12,4 @@ urlpatterns = patterns('',
|
|||
url(r'^openid/', include('oidc_provider.urls', namespace='oidc_provider')),
|
||||
|
||||
url(r'^admin/', include(admin.site.urls)),
|
||||
)
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue