diff options
author | luxagraf <sng@luxagraf> | 2021-03-21 20:51:36 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf> | 2021-03-21 20:51:36 -0400 |
commit | 13ed0a5e81c0da5ab639a017a7d03e2bafdddeea (patch) | |
tree | a4d9986408b0b747560b87003462e5221ac00aac /app/posts/urls/src_urls.py | |
parent | 44af81a8b1875321fb4c97c471290d6a888c1e46 (diff) |
src: made signup form work
Diffstat (limited to 'app/posts/urls/src_urls.py')
-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(), |