summaryrefslogtreecommitdiff
path: root/app/posts/urls/podcast_urls.py
diff options
context:
space:
mode:
authorlxf <sng@luxagraf.net>2021-10-30 17:18:57 -0400
committerlxf <sng@luxagraf.net>2021-10-30 17:18:57 -0400
commit7b628e9cde7fe2babe16523b7d1d44df0c468203 (patch)
treed2303d4b6fb316ff32bf58c2afebc6fcd7f30a1e /app/posts/urls/podcast_urls.py
parent940da61accfd124a2dfc90fb585434203f39685b (diff)
posts: made podcast posttype and templates
Diffstat (limited to 'app/posts/urls/podcast_urls.py')
-rw-r--r--app/posts/urls/podcast_urls.py34
1 files changed, 34 insertions, 0 deletions
diff --git a/app/posts/urls/podcast_urls.py b/app/posts/urls/podcast_urls.py
new file mode 100644
index 0000000..9139b55
--- /dev/null
+++ b/app/posts/urls/podcast_urls.py
@@ -0,0 +1,34 @@
+from django.urls import path, re_path
+
+from ..views import podcast_views as views
+
+app_name = "podcasts"
+
+urlpatterns = [
+ path(
+ r'feed.xml',
+ views.PodcastRSSFeedView(),
+ name="feed"
+ ),
+ path(
+ r'topic/<str:slug>',
+ views.TopicListView.as_view(),
+ name="list_topics"
+ ),
+ path(
+ r'<str:episode>/<str:slug>',
+ views.PodcastDetailView.as_view(),
+ name="detail"
+ ),
+ re_path(
+ r'<int:page>',
+ views.PodcastListView.as_view(),
+ name="list"
+ ),
+ path(
+ r'',
+ views.PodcastListView.as_view(),
+ {'page':1},
+ name="list"
+ ),
+]