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