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'<int:year>/<int:month>/<str:slug>',
views.NewsletterMailingDetail.as_view(),
name="detail"
),
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(
# '/subscribe/confirm/',
# views.SubscribeRequestView.as_view(confirm=True),
# name='newsletter_subscribe_confirm'
#),
#path(
# '^<newsletter_slug:s>/update/$',
# views.UpdateRequestView.as_view(),
# name='newsletter_update_request'
#),
#path(
# '^<newsletter_slug:s>/unsubscribe/$',
# views.UnsubscribeRequestView.as_view(),
# name='newsletter_unsubscribe_request'
#),
#path(
# '^<newsletter_slug:s>/unsubscribe/confirm/$',
# views.UnsubscribeRequestView.as_view(confirm=True),
# name='newsletter_unsubscribe_confirm'
#),
path(
r'subscribed/',
views.NewsletterSubscribedView.as_view(),
name="subscribed"
),
path(
r'',
views.NewsletterListView.as_view(),
{'page': 1},
name="list"
),
]
|