From 13ed0a5e81c0da5ab639a017a7d03e2bafdddeea Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sun, 21 Mar 2021 20:51:36 -0400 Subject: src: made signup form work --- app/posts/urls/src_urls.py | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) (limited to 'app/posts/urls/src_urls.py') 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/', - # views.BookDetailView.as_view(), - # name='detail_book' - #), - #path( - # r'books/', - # views.BookListView.as_view(), - # name='list_books' - #), + path( + 'unsubscribe/', + lttrviews.UnsubscribeRequestView.as_view(), + name='newsletter_unsubscribe' + ), + path( + r'subscribe/', + lttrviews.NewsletterSubscribeView.as_view(slug='src'), + name="subscribe" + ), + path( + 'activate//', + lttrviews.ConfirmSubscriptionView.as_view(), name='newsletter_activate' + ), + path( + r'subscribed/', + lttrviews.NewsletterSubscribedView.as_view(), + name="subscribed" + ), path( r'.txt', views.SrcDetailViewTXT.as_view(), -- cgit v1.2.3-70-g09d2