Commit 32fede3e authored by Jason D Yeomans's avatar Jason D Yeomans
Browse files

fixed login issue

parent 98c61b5f
...@@ -7,11 +7,11 @@ admin.autodiscover() ...@@ -7,11 +7,11 @@ admin.autodiscover()
urlpatterns = patterns('', urlpatterns = patterns('',
url(r'', include('allauth.urls')),
# login and logout # login and logout
url(r'^login/$', 'django.contrib.auth.views.login', {'template_name': 'login.html'}, name='login'), url(r'^login/$', 'django.contrib.auth.views.login', {'template_name': 'login.html'}, name='login'),
url(r'^logout/$', 'django.contrib.auth.views.logout', {'template_name': 'index.html'}, name='logout'), #url(r'^logout/$', 'django.contrib.auth.views.logout', {'template_name': 'index.html'}, name='logout'),
url(r'', include('allauth.urls')),
url(r'^student/(?P<slug>[\w-]+)/$', url(r'^student/(?P<slug>[\w-]+)/$',
DetailStudent.as_view( DetailStudent.as_view(
......
Markdown is supported
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