Move blog feed to /blog/atom.xml
This is to comply with non-written standards.
This commit is contained in:
parent
417509512f
commit
b8f5f11034
@ -1,4 +1,5 @@
|
|||||||
from django.conf.urls import patterns, url
|
from django.conf.urls import patterns, url
|
||||||
|
from django.views.generic import RedirectView
|
||||||
from blog import views
|
from blog import views
|
||||||
|
|
||||||
urlpatterns = patterns('',
|
urlpatterns = patterns('',
|
||||||
@ -43,8 +44,12 @@ urlpatterns = patterns('',
|
|||||||
name = 'codechunk'
|
name = 'codechunk'
|
||||||
),
|
),
|
||||||
url(
|
url(
|
||||||
r'^feed$',
|
r'^atom.xml$',
|
||||||
views.feed,
|
views.feed,
|
||||||
name = 'feed'
|
name = 'feed'
|
||||||
),
|
),
|
||||||
|
url(
|
||||||
|
r'^feed$',
|
||||||
|
RedirectView.as_view(pattern_name='blog:feed')
|
||||||
|
),
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user