Skip to content

Commit

Permalink
make updates/rss work and remove blog/rss
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahframe committed Aug 26, 2024
1 parent 62cf444 commit 6f3d1ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
9 changes: 0 additions & 9 deletions cdhweb/blog/urls.py

This file was deleted.

4 changes: 3 additions & 1 deletion cdhweb/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from cdhweb.context_processors import favicon_path
from cdhweb.pages.views import OpenSearchDescriptionView, SiteSearchView
from cdhweb.events.views import EventIcalView
from cdhweb.blog.views import BlogPostRedirectView
from cdhweb.blog.views import BlogPostRedirectView, RssBlogPostFeed, AtomBlogPostFeed

admin.autodiscover()

Expand Down Expand Up @@ -70,6 +70,8 @@
# wagtail paths
path("cms/", include(wagtailadmin_urls)),
path("documents/", include(wagtaildocs_urls)),
path("updates/rss/", RssBlogPostFeed(), name="rss"),
path("updates/atom/", AtomBlogPostFeed(), name="atom"),
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'),
path("updates/<slug>/", BlogPostRedirectView.as_view(), name='blog-detail'),
]
Expand Down

0 comments on commit 6f3d1ac

Please sign in to comment.