diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-04-15 21:47:49 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-04-15 21:47:49 -0400 |
commit | ce1f17e5104d44fa833090c47dd76466a2d7f743 (patch) | |
tree | b304b5bacde314f817aa11b1fa9358296fec6530 /urls.py | |
parent | 993d1a584f7aff8d0975495bef81850c756eec10 (diff) |
Redirect several URLs at the router level.
Diffstat (limited to 'urls.py')
-rw-r--r-- | urls.py | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -25,14 +25,16 @@ urlpatterns += patterns('public.views', (r'^$', 'index', {}, 'index'), (r'^about/$', TemplateView.as_view(template_name='public/about.html'), {}, 'page-about'), + ('^art/$', RedirectView.as_view('https://projects.parabola.nu/artwork.git/'), + {}, 'page-art'), (r'^https/$', TemplateView.as_view(template_name='public/https.html'), {}, 'page-https'), - (r'^art/$', TemplateView.as_view(template_name='public/art.html'), - {}, 'page-art'), (r'^hackers/$', 'userlist', { 'user_type':'hackers' }, 'page-devs'), (r'^fellows/$', 'userlist', { 'user_type':'fellows' }, 'page-fellows'), - (r'^donate/$', 'donate', {}, 'page-donate'), - (r'^download/$', 'download', {}, 'page-download'), + (r'^donate/$', RedirectView.as_view('https://wiki.parabola.nu/Donations'), + {}, 'page-donate'), + (r'^download/$', RedirectView.as_view('https://wiki.parabola.nu/Get_Parabola'), + {}, 'page-download'), (r'^master-keys/$', 'keys', {}, 'page-keys'), (r'^master-keys/json/$', 'keys_json', {}, 'pgp-keys-json'), ) @@ -109,8 +111,8 @@ legacy_urls = ( ('^docs/', 'https://wiki.parabola.nu/'), - ('^developers/$', '/hackers/'), - ('^trustedusers/$', '/hackers/'), + ('^developers/$', '/hackers/'), + ('^trustedusers/$', '/hackers/'), ) urlpatterns += [url(old_url, RedirectView.as_view(url=new_url)) |