From: Matthijs Kooijman Date: Sun, 3 Feb 2008 18:25:18 +0000 (+0100) Subject: * Give the login and logout views a name and refer to the logout view by that name. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=7718e4a9979f165d892248287f646e206b3c78dc;p=matthijs%2Fprojects%2Fxerxes.git * Give the login and logout views a name and refer to the logout view by that name. --- diff --git a/templates/base/base.html b/templates/base/base.html index 4a35e87..8fefc9a 100644 --- a/templates/base/base.html +++ b/templates/base/base.html @@ -21,7 +21,7 @@ diff --git a/urls.py b/urls.py index 0483644..bffdb4f 100644 --- a/urls.py +++ b/urls.py @@ -25,8 +25,8 @@ urlpatterns = patterns('', url(r'^influences/character/(?P\d+)/$', 'django.views.generic.list_detail.object_detail', chars_dict, name='influences_character_detail'), url(r'^influences/character/add/$', 'ee.influences.views.addCharacter', name='influences_add_character'), - url(r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'base/login.html'}), - url(r'^accounts/logout/$', 'django.contrib.auth.views.logout_then_login'), + url(r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'base/login.html'}, name='login'), + url(r'^accounts/logout/$', 'django.contrib.auth.views.logout_then_login', name='logout'), ) if settings.DEBUG: