diff options
Diffstat (limited to 'app/posts/urls')
-rw-r--r-- | app/posts/urls/podcast_urls.py | 34 | ||||
-rw-r--r-- | app/posts/urls/src_urls.py | 49 |
2 files changed, 34 insertions, 49 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" + ), +] diff --git a/app/posts/urls/src_urls.py b/app/posts/urls/src_urls.py deleted file mode 100644 index 637d9a6..0000000 --- a/app/posts/urls/src_urls.py +++ /dev/null @@ -1,49 +0,0 @@ -from django.urls import path, re_path - -from ..views import src_views as views - -app_name = "src" - -urlpatterns = [ - path( - r'feed.xml', - views.SrcRSSFeedView(), - name="feed" - ), - path( - r'topic/<str:slug>', - views.TopicListView.as_view(), - name="list_topics" - ), - #path( - # r'books/<str:slug>', - # views.BookDetailView.as_view(), - # name='detail_book' - #), - #path( - # r'books/', - # views.BookListView.as_view(), - # name='list_books' - #), - path( - r'<str:slug>.txt', - views.SrcDetailViewTXT.as_view(), - name="detail-txt" - ), - path( - r'<str:slug>', - views.SrcDetailView.as_view(), - name="detail" - ), - re_path( - r'<int:page>', - views.SrcListView.as_view(), - name="list" - ), - path( - r'', - views.SrcListView.as_view(), - {'page':1}, - name="list" - ), -] |