diff --git a/accounts/urls.py b/accounts/urls.py index 9cc9682..00bdefe 100644 --- a/accounts/urls.py +++ b/accounts/urls.py @@ -4,11 +4,8 @@ from django.contrib.auth import views as auth_views from . import views urlpatterns = [ - url(r'^login/$', 'django.contrib.auth.views.login', - {'template_name': 'login.html'}, name='login'), - url(r'^logout/$', 'django.contrib.auth.views.logout', - {'template_name': 'logout.html'}, name='logout'), - url(r'^profile/$', views.profile, name='profile'), - url(r'^$', views.accounts, name='accounts'), + url(r'^login/$', auth_views.LoginView.as_view(template_name='login.html'), name='login'), + url(r'^logout/$', auth_views.LogoutView.as_view(template_name='logout.html'), name='logout'), + url(r'^profile/$', views.profile, name='profile'), url(r'^$', views.accounts, name='accounts'), url(r'^profile/(?P[0-9]+)/$', views.account, name='account'), ] diff --git a/conf/requirements.txt b/conf/requirements.txt index acfaaed..e562fe4 100644 --- a/conf/requirements.txt +++ b/conf/requirements.txt @@ -1,4 +1,4 @@ -Django==1.8.11 +Django==1.11.14 websockify==0.8.0 gunicorn==19.3.0 libvirt-python==3.10