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
|
from django.urls import path, re_path
from . import views
app_name = "lttr"
urlpatterns = [
path(
'postcardsubscribe',
views.PostcardSubscribeView.as_view(),
name='postcard_subscribe'
),
path(
'postcardthanks',
views.PostcardSubscribedView.as_view(),
name='postcard_thanks'
),
path(
'<str:slug>/unsubscribe/<str:activation_code>',
views.UnsubscribeRequestView.as_view(),
name='newsletter_unsubscribe'
),
path(
r'<str:slug>/subscribe/',
views.NewsletterSubscribeView.as_view(),
name="subscribe"
),
path(
'<str:slug>/activate/<str:activation_code>/',
views.ConfirmSubscriptionView.as_view(), name='newsletter_activate'
),
path(
r'subscribed/',
views.NewsletterSubscribedView.as_view(),
name="subscribed"
),
]
|