summaryrefslogtreecommitdiff
path: root/app/lttr/urls.py
blob: 9186ed1ecd9df1f00572044df7dea95674866818 (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
from django.urls import path, re_path

from . import views

app_name = "lttr"

urlpatterns = [
    path(
        r'<str:slug>/feed.xml',
        views.NewsletterRSSFeedView(),
        name="feed"
    ),
    path(
        '<str:slug>/unsubscribe/<str:activation_code>',
        views.UnsubscribeRequestView.as_view(),
        name='newsletter_unsubscribe'
    ),
    path(
        r'<str:slug>/<int:issue>/<str:mailing>',
        views.NewsletterMailingDetail.as_view(),
        name="detail"
    ),
    path(
        r'<str:slug>/subscribe',
        views.NewsletterSubscribeView.as_view(),
        name="subscribe"
    ),
    path(
        r'<str:slug>/<int:page>',
        views.NewsletterListView.as_view(),
        name="list"
    ),
    path(
        '<str:slug>/activate/<str:activation_code>/',
        views.ConfirmSubscriptionView.as_view(), name='newsletter_activate'
    ),
    path(
        r'subscribed/',
        views.NewsletterSubscribedView.as_view(),
        name="subscribed"
    ),
    path(
        r'<str:slug>/',
        views.NewsletterListView.as_view(),
        {'page': 1},
        name="list"
    ),
    path(
        r'',
        views.NewsletterOptionsView.as_view(),
        name="newsletters"
    ),
]