diff options
Diffstat (limited to 'app/posts/urls/podcast_urls.py')
-rw-r--r-- | app/posts/urls/podcast_urls.py | 34 |
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" + ), +] |