summaryrefslogtreecommitdiff
path: root/app/posts/urls/src_urls.py
blob: b98121b611b9bd98fad108a46b50f95a1c5ed657 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
from django.urls import path, re_path

from ..views import src_views as views
from lttr import views as lttrviews

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(
        'unsubscribe/<str:activation_code>',
        lttrviews.UnsubscribeRequestView.as_view(),
        name='newsletter_unsubscribe'
    ),
    path(
        r'subscribe/',
        lttrviews.NewsletterSubscribeView.as_view(slug='src'),
        name="subscribe"
    ),
    path(
        'activate/<str:activation_code>/',
        lttrviews.ConfirmSubscriptionView.as_view(), name='newsletter_activate'
    ),
    path(
        r'subscribed/',
        lttrviews.NewsletterSubscribedView.as_view(),
        name="subscribed"
    ),
    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"
    ),
]