diff options
Diffstat (limited to 'app/posts')
-rw-r--r-- | app/posts/urls/src_urls.py | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/app/posts/urls/src_urls.py b/app/posts/urls/src_urls.py index 637d9a6..b98121b 100644 --- a/app/posts/urls/src_urls.py +++ b/app/posts/urls/src_urls.py @@ -1,6 +1,7 @@ from django.urls import path, re_path from ..views import src_views as views +from lttr import views as lttrviews app_name = "src" @@ -15,16 +16,25 @@ urlpatterns = [ views.TopicListView.as_view(), name="list_topics" ), - #path( - # r'books/<str:slug>', - # views.BookDetailView.as_view(), - # name='detail_book' - #), - #path( - # r'books/', - # views.BookListView.as_view(), - # name='list_books' - #), + path( + 'unsubscribe/<str:activation_code>', + lttrviews.UnsubscribeRequestView.as_view(), + name='newsletter_unsubscribe' + ), + path( + r'subscribe/', + lttrviews.NewsletterSubscribeView.as_view(slug='src'), + name="subscribe" + ), + path( + 'activate/<str:activation_code>/', + lttrviews.ConfirmSubscriptionView.as_view(), name='newsletter_activate' + ), + path( + r'subscribed/', + lttrviews.NewsletterSubscribedView.as_view(), + name="subscribed" + ), path( r'<str:slug>.txt', views.SrcDetailViewTXT.as_view(), |