from django.urls import path, re_path from . import views app_name = "lttr" urlpatterns = [ path( r'/feed.xml', views.NewsletterRSSFeedView(), name="feed" ), path( '/unsubscribe/', views.UnsubscribeRequestView.as_view(), name='newsletter_unsubscribe' ), path( r'//', views.NewsletterMailingDetail.as_view(), name="detail" ), path( r'/subscribe', views.NewsletterSubscribeView.as_view(), name="subscribe" ), path( r'/', views.NewsletterListView.as_view(), name="list" ), path( '/activate//', views.ConfirmSubscriptionView.as_view(), name='newsletter_activate' ), path( r'subscribed/', views.NewsletterSubscribedView.as_view(), name="subscribed" ), path( r'/', views.NewsletterListView.as_view(), {'page': 1}, name="list" ), path( r'', views.NewsletterOptionsView.as_view(), name="newsletters" ), ]