Skip to content

Commit

Permalink
Redirecting old download pages to new downloads pages
Browse files Browse the repository at this point in the history
  • Loading branch information
frankwiles committed Oct 29, 2014
1 parent 19a2258 commit 8a751d5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pydotorg/urls.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.views.generic.base import TemplateView
from django.views.generic.base import TemplateView, RedirectView
from django.conf import settings

from . import views
Expand Down Expand Up @@ -72,6 +72,13 @@ def default_reference_role(name, rawtext, text, lineno, inliner, options=None, c

# python section landing pages
url(r'^about/$', TemplateView.as_view(template_name="python/about.html"), name='about'),

# Redirect old download links to new downloads pages
url(r'^download/$', url='https://www.python.org/downloads/'),
url(r'^download/source/$', url='https://www.python.org/downloads/source/'),
url(r'^download/mac/$', url='https://www.python.org/downloads/mac-osx/'),
url(r'^download/windows/$', url='https://www.python.org/downloads/windows/'),

url(r'^downloads/', include('downloads.urls', namespace='download')),
url(r'^doc/$', TemplateView.as_view(template_name="python/documentation.html"), name='documentation'),
#url(r'^community/$', TemplateView.as_view(template_name="python/community.html"), name='community'),
Expand Down

0 comments on commit 8a751d5

Please sign in to comment.