logout works
This commit is contained in:
parent
fe3502d775
commit
aa64229f72
BIN
k4ever/k4ever.db
BIN
k4ever/k4ever.db
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…
Reference in New Issue