diff options
Diffstat (limited to 'urls.py')
-rw-r--r-- | urls.py | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -93,9 +93,17 @@ urlpatterns += patterns('', (r'^todolists/$','todolists.views.public_list'), ) -if settings.DEBUG == True: - urlpatterns += patterns('', - (r'^media/(.*)$', 'django.views.static.serve', - {'document_root': os.path.join(settings.DEPLOY_PATH, 'media')})) +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})) # vim: set ts=4 sw=4 et: |