logout works

master
seba 13 years ago
parent fe3502d775
commit aa64229f72

Binary file not shown.

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from django.conf.urls.defaults import *
from django.conf import settings
@ -6,5 +7,7 @@ urlpatterns = patterns('',
(r'^$', 'django.views.generic.simple.redirect_to', {'url': 'login/'}),
(r'^register/$', 'main.views.register'),
(r'^login/$', 'django.contrib.auth.views.login'),
(r'^logout/$', 'django.contrib.auth.views.logout', {'template_name': 'registration/logout.html'}),
(r'^logout/$', 'django.contrib.auth.views.logout',
{'template_name': 'registration/logout.html',
'next_page': '/user/login/'}),
)

Loading…
Cancel
Save