Update urls.py because of a RemovedInDjango110Warning.

This commit is contained in:
juanifioren 2016-01-25 14:19:57 -03:00
parent 622882ada5
commit 9f86a47cce

View file

@ -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)),
)
]