summaryrefslogtreecommitdiff
path: root/urls.py
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-04-16 02:50:22 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-04-16 02:50:22 -0400
commitd2eb47c0dfc068c7727232d89daeee377969288d (patch)
treea28b938c1eef550a5a0d21fdab0b1fef41d4ffd3 /urls.py
parent4da7072d827b6cc2cd3aeae908b221b58738f364 (diff)
parentc8d979b8a48805d162ab46cdc4e493da0aa1595c (diff)
Merge branch 'archweb-generic'
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py14
1 files changed, 5 insertions, 9 deletions
diff --git a/urls.py b/urls.py
index 81c80ec6..c60a3dbe 100644
--- a/urls.py
+++ b/urls.py
@@ -89,12 +89,10 @@ urlpatterns += patterns('',
'news-sitemap'),
)
-# Authentication / Admin
+# Authentication
urlpatterns += patterns('django.contrib.auth.views',
- (r'^login/$', 'login', {
- 'template_name': 'registration/login.html'}),
- (r'^logout/$', 'logout', {
- 'template_name': 'registration/logout.html'}),
+ (r'^login/$', 'login', {'template_name': 'registration/login.html'}, 'login'),
+ (r'^logout/$', 'logout', {'template_name': 'registration/logout.html'}, 'logout'),
)
# Redirects for older known pages we see in the logs
@@ -116,10 +114,8 @@ legacy_urls = (
('^docs/en/guide/install/arch-install-guide.html',
'https://wiki.parabola.nu/Installation_Guide'),
- ('^docs/en/',
- 'https://wiki.parabola.nu/'),
- ('^docs/',
- 'https://wiki.parabola.nu/'),
+ ('^docs/en/', 'https://wiki.parabola.nu/'),
+ ('^docs/', 'https://wiki.parabola.nu/'),
('^developers/$', '/hackers/'),
('^trustedusers/$', '/hackers/'),