Skip to content

Commit 6f3d1ac

Browse files
committed
make updates/rss work and remove blog/rss
1 parent 62cf444 commit 6f3d1ac

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

cdhweb/blog/urls.py

-9
This file was deleted.

cdhweb/urls.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from cdhweb.context_processors import favicon_path
1616
from cdhweb.pages.views import OpenSearchDescriptionView, SiteSearchView
1717
from cdhweb.events.views import EventIcalView
18-
from cdhweb.blog.views import BlogPostRedirectView
18+
from cdhweb.blog.views import BlogPostRedirectView, RssBlogPostFeed, AtomBlogPostFeed
1919

2020
admin.autodiscover()
2121

@@ -70,6 +70,8 @@
7070
# wagtail paths
7171
path("cms/", include(wagtailadmin_urls)),
7272
path("documents/", include(wagtaildocs_urls)),
73+
path("updates/rss/", RssBlogPostFeed(), name="rss"),
74+
path("updates/atom/", AtomBlogPostFeed(), name="atom"),
7375
re_path(r"updates/(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/(?P<slug>[\w-]+)", BlogPostRedirectView.as_view(), name='blog-detail'),
7476
path("updates/<slug>/", BlogPostRedirectView.as_view(), name='blog-detail'),
7577
]

0 commit comments

Comments
 (0)