diff options
author | Dan McGee <dan@archlinux.org> | 2011-03-04 09:36:18 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-03-04 09:36:18 -0600 |
commit | c722d8bf9e2f647d5cd8fa3a85a17d0cb3b5b101 (patch) | |
tree | 2ac4fcf33d37786737a2664a96dd03f7961e8d80 | |
parent | f29700ce67ad323e8c68dacd776cf3e991721104 (diff) |
Remove multiple account login/logout URLs
And slightly spruce up the logout template with a header.
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r-- | templates/base.html | 2 | ||||
-rw-r--r-- | templates/registration/logout.html | 4 | ||||
-rw-r--r-- | urls.py | 4 |
3 files changed, 4 insertions, 6 deletions
diff --git a/templates/base.html b/templates/base.html index 03795dd9..88bb3414 100644 --- a/templates/base.html +++ b/templates/base.html @@ -44,7 +44,7 @@ title="arch-dev mailing list archives">Archives</a></li> <li><a href="/mirrors/" title="Mirror server statistics">Mirrors</a></li> <li><a href="/devel/profile/" title="Modify your account profile">Profile</a></li> - <li><a href="/accounts/logout/" title="Logout of the developer interface">Logout</a></li> + <li><a href="/logout/" title="Logout of the developer interface">Logout</a></li> </ul> {% endif %} </div><!-- #archdev-navbar --> diff --git a/templates/registration/logout.html b/templates/registration/logout.html index f8e07621..e890ce99 100644 --- a/templates/registration/logout.html +++ b/templates/registration/logout.html @@ -3,7 +3,9 @@ {% block content %} <div id="dev-logout" class="box"> - <p>Logout successful.<p> + <h2>Developer Logout</h2> + + <p>Logout was successful.<p> </div> {% endblock %} @@ -42,12 +42,8 @@ urlpatterns += patterns('django.contrib.sitemaps.views', urlpatterns += patterns('django.contrib.auth.views', (r'^login/$', 'login', { 'template_name': 'registration/login.html'}), - (r'^accounts/login/$', 'login', { - 'template_name': 'registration/login.html'}), (r'^logout/$', 'logout', { 'template_name': 'registration/logout.html'}), - (r'^accounts/logout/$', 'logout', { - 'template_name': 'registration/logout.html'}), ) # Public pages |