logout works

This commit is contained in:
seba 2011-03-05 00:59:47 +01:00
parent fe3502d775
commit aa64229f72
2 changed files with 4 additions and 1 deletions

Binary file not shown.

View File

@ -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/'}),
)