summaryrefslogtreecommitdiff
path: root/app/lttr/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/lttr/urls.py')
-rw-r--r--app/lttr/urls.py33
1 files changed, 31 insertions, 2 deletions
diff --git a/app/lttr/urls.py b/app/lttr/urls.py
index 84b0bca..e0166f1 100644
--- a/app/lttr/urls.py
+++ b/app/lttr/urls.py
@@ -1,4 +1,4 @@
-from django.urls import path
+from django.urls import path, re_path
from . import views
@@ -11,11 +11,40 @@ urlpatterns = [
name="detail"
),
path(
- r'<int:page>',
+ 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},