from django.urls import path, re_path from . import views app_name = "lttr" urlpatterns = [ path( r'//', views.NewsletterMailingDetail.as_view(), name="detail" ), path( r'/', views.NewsletterListView.as_view(), name="list" ), path( '/activate//', views.ConfirmSubscriptionView.as_view(), name='newsletter_activate' ), #path( # '/subscribe/confirm/', # views.SubscribeRequestView.as_view(confirm=True), # name='newsletter_subscribe_confirm' #), #path( # '^/update/$', # views.UpdateRequestView.as_view(), # name='newsletter_update_request' #), #path( # '^/unsubscribe/$', # views.UnsubscribeRequestView.as_view(), # name='newsletter_unsubscribe_request' #), #path( # '^/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}, name="list" ), ]