blob: abeac11d8c7f298e8a34d0309beb1ad33ac4e5b3 (
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
|
from django.urls import path, re_path
from . import views
app_name = "lttr"
urlpatterns = [
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"
),
]
|