From b8f5f11034ac1cbb51364601a8c06b89a2dc8269 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Thu, 12 Mar 2015 14:29:37 +0100 Subject: [PATCH] Move blog feed to /blog/atom.xml This is to comply with non-written standards. --- blog/urls.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/blog/urls.py b/blog/urls.py index 4f9576f..017680c 100644 --- a/blog/urls.py +++ b/blog/urls.py @@ -1,4 +1,5 @@ from django.conf.urls import patterns, url +from django.views.generic import RedirectView from blog import views urlpatterns = patterns('', @@ -43,8 +44,12 @@ urlpatterns = patterns('', name = 'codechunk' ), url( - r'^feed$', + r'^atom.xml$', views.feed, name = 'feed' ), + url( + r'^feed$', + RedirectView.as_view(pattern_name='blog:feed') + ), )