summaryrefslogtreecommitdiff
path: root/urls.py
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-04-16 02:38:51 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-04-16 02:38:51 -0400
commitc8d979b8a48805d162ab46cdc4e493da0aa1595c (patch)
tree6846db4f47e29a3fb6a951383ec764a897d3ab85 /urls.py
parent4d4f76a4fd24891669c254b86b0173258b719b0e (diff)
parent790def2f4db2afec150bab8dc842f6068fb751db (diff)
Merge tag 'release_2015-04-13' into archweb-generic
Fix up 'None' display in places
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 36e3fef1..76271ece 100644
--- a/urls.py
+++ b/urls.py
@@ -92,12 +92,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
@@ -119,10 +117,8 @@ legacy_urls = (
('^docs/en/guide/install/arch-install-guide.html',
'https://wiki.archlinux.org/index.php/Installation_guide'),
- ('^docs/en/',
- 'https://wiki.archlinux.org/'),
- ('^docs/',
- 'https://wiki.archlinux.org/'),
+ ('^docs/en/', 'https://wiki.archlinux.org/'),
+ ('^docs/', 'https://wiki.archlinux.org/'),
)
urlpatterns += [url(old_url, RedirectView.as_view(url=new_url))