diff options
author | luxagraf <sng@luxagraf.net> | 2022-12-02 14:16:08 -0600 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2022-12-02 14:16:08 -0600 |
commit | 656505098a80e653319236ac302fd6dd9f485b33 (patch) | |
tree | 03fe2f552496e2a2b459f5227dc11273d1b94211 /app/podcasts/urls_feeds.py | |
parent | bf2fa131cba6430ba93f584f4693c3444e0c455f (diff) |
reset migrations to zero out some changes (deleting the geodata for
example)
Diffstat (limited to 'app/podcasts/urls_feeds.py')
-rw-r--r-- | app/podcasts/urls_feeds.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/app/podcasts/urls_feeds.py b/app/podcasts/urls_feeds.py new file mode 100644 index 0000000..07e02ae --- /dev/null +++ b/app/podcasts/urls_feeds.py @@ -0,0 +1,17 @@ +from django.urls import include, re_path + +from .feeds import RssShowFeed, AtomShowFeed, AtomRedirectView, RssRedirectView +from .models import MIME_CHOICES + + +MIMES = "|".join([enclosure[0] for enclosure in MIME_CHOICES]) + + +urlpatterns = [ + # Episode list feed by podcast (RSS 2.0 and iTunes) + re_path(r"^(?P<show_slug>[-\w]+)/(?P<mime_type>{mimes})/rss/$".format(mimes=MIMES), + RssShowFeed(), name="podcasts_show_feed_rss"), + # Episode list feed by show (Atom) + re_path(r"^(?P<show_slug>[-\w]+)/(?P<mime_type>{mimes})/atom/$".format(mimes=MIMES), + AtomShowFeed(), name="podcasts_show_feed_atom"), +] |