summaryrefslogtreecommitdiff
path: root/app/posts/urls/podcast_urls.py
blob: 9139b55e3e80cb2da96a039f030adb2e06382c06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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"
    ),
]