From 7718e4a9979f165d892248287f646e206b3c78dc Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Sun, 3 Feb 2008 19:25:18 +0100 Subject: [PATCH] * Give the login and logout views a name and refer to the logout view by that name. --- templates/base/base.html | 2 +- urls.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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: -- 2.30.2