diff options
Diffstat (limited to 'urls.py')
-rw-r--r-- | urls.py | 19 |
1 files changed, 3 insertions, 16 deletions
@@ -58,12 +58,13 @@ urlpatterns += patterns('public.views', (r'^$', 'index', {}, 'index'), (r'^about/$', TemplateView.as_view(template_name='public/about.html'), {}, 'page-about'), + (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'^svn/$', TemplateView.as_view(template_name='public/svn.html'), {}, 'page-svn'), - (r'^developers/$', 'userlist', { 'user_type':'devs' }, 'page-devs'), - (r'^trustedusers/$', 'userlist', { 'user_type':'tus' }, 'page-tus'), + (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'), @@ -84,25 +85,11 @@ urlpatterns += patterns('', (r'^packages/', include('packages.urls')), (r'^releng/', include('releng.urls')), (r'^todo/', include('todolists.urls')), - (r'^visualize/', include('visualize.urls')), (r'^opensearch/packages/$', 'packages.views.opensearch', {}, 'opensearch-packages'), (r'^todolists/$','todolists.views.public_list'), ) -legacy_urls = ( - ('^about.php', '/about/'), - ('^changelog.php', '/packages/?sort=-last_update'), - ('^download.php', '/download/'), - ('^index.php', '/'), - ('^logos.php', '/art/'), - ('^news.php', '/news/'), -) - -for old_url, new_url in legacy_urls: - urlpatterns += patterns('django.views.generic.simple', - (old_url, 'redirect_to', {'url': new_url})) - if settings.DEBUG == True: urlpatterns += patterns('', (r'^media/(.*)$', 'django.views.static.serve', |