Add module for legacy URLs, add legacy URLs for press

This commit is contained in:
Magnus Hagander
2010-01-16 17:17:49 +01:00
parent 71da5a4dc5
commit c42e6aa740
4 changed files with 15 additions and 0 deletions

View File

View File

@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

6
pgweb/legacyurl/views.py Normal file
View File

@ -0,0 +1,6 @@
from django.http import HttpResponse, Http404, HttpResponseRedirect
def presskit(self, version, language):
return HttpResponseRedirect("/about/press/presskit%s/%s/" % (
version, language)
)

View File

@ -65,6 +65,12 @@ urlpatterns = patterns('',
# Special secttions
###
(r'account/', include('account.urls')),
###
# Legacy URLs from the old website, that are likely to be used from other
# sites or press releases or such
###
(r'^about/press/presskit(\d+).html.(\w+)$', 'pgweb.legacyurl.views.presskit'),
# Uncomment the next line to enable the admin:
(r'^admin/(.*)', admin.site.root),