urls.py: add planet.archlinux.org fallback urls

Add temporary fallback urls for old planet.archlinux.org urls.

Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl>
This commit is contained in:
Jelle van der Waa 2020-02-20 22:06:00 +01:00
parent 2146c423fb
commit 5f9b0bd41e
No known key found for this signature in database
GPG Key ID: C06086337C50773E

View File

@ -68,6 +68,12 @@
url(r'^planet/$', cache_page(317)(PlanetFeed()), name='planet-feed'),
]
# Old planet.archlinux.org redirects, to be removed once people have migrated.
urlpatterns.extend([
url(r'^planet/rss20.xml$', cache_page(317)(PlanetFeed())),
url(r'^planet/atom.xml$', cache_page(317)(PlanetFeed())),
])
# Includes and other remaining stuff
urlpatterns.extend([
url(r'^admin/', admin.site.urls),