Skip to content

Commit

Permalink
Add legacy URLs for news and events
Browse files Browse the repository at this point in the history
  • Loading branch information
mhagander committed Jan 16, 2010
1 parent c42e6aa commit fd9adcf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions pgweb/legacyurl/views.py
Expand Up @@ -4,3 +4,10 @@ def presskit(self, version, language):
return HttpResponseRedirect("/about/press/presskit%s/%s/" % (
version, language)
)

def news(self, newsid):
return HttpResponseRedirect("/about/news/%s/" % newsid)

def event(self, eventid):
return HttpResponseRedirect("/about/event/%s/" % eventid)

4 changes: 3 additions & 1 deletion pgweb/urls.py
Expand Up @@ -70,7 +70,9 @@
# 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'),
(r'^about/press/presskit(\d+)\.html\.(\w+)$', 'pgweb.legacyurl.views.presskit'),
(r'^about/news\.(\d+)$', 'pgweb.legacyurl.views.news'),
(r'^about/event\.(\d+)$', 'pgweb.legacyurl.views.event'),

# Uncomment the next line to enable the admin:
(r'^admin/(.*)', admin.site.root),
Expand Down

0 comments on commit fd9adcf

Please sign in to comment.