Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make updates/rss work and remove blog/rss #177

Merged
merged 2 commits into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions cdhweb/blog/urls.py

This file was deleted.

5 changes: 3 additions & 2 deletions 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 All @@ -41,7 +41,6 @@
path("_500/", lambda _: 1 / 0), # for testing 500 error page
# main apps
path("people/", include("cdhweb.people.urls", namespace="people")),
path("blog/", include("cdhweb.blog.urls", namespace="blog")),
path("projects/", include("cdhweb.projects.urls", namespace="projects")),
# search
path("search/", SiteSearchView.as_view(), name="search"),
Expand Down Expand Up @@ -70,6 +69,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
Loading