diff options
Diffstat (limited to 'app/lttr/urls.py')
-rw-r--r-- | app/lttr/urls.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/app/lttr/urls.py b/app/lttr/urls.py new file mode 100644 index 0000000..abeac11 --- /dev/null +++ b/app/lttr/urls.py @@ -0,0 +1,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" + ), +] |