summaryrefslogtreecommitdiff
path: root/urls.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2015-01-13 18:17:27 -0600
committerDan McGee <dan@archlinux.org>2015-01-13 18:24:56 -0600
commit5a31b868715dbd1a4e7fd87f0f9f04e2c8395391 (patch)
treec10f736a66080cc07f5514db2686c792d717ad47 /urls.py
parent1edc33fd73ba588dea8765cd2d9a936f98d7dc1e (diff)
Slight tweaks to login and logout pages
Turns out has_errors hasn't worked since Django pre-1.0, wow. Remove that old code and clean up some other small things while we're in there. Signed-off-by: Dan McGee <dan@archlinux.org>
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))