bgneal@51: """ bgneal@51: Urls for the email_list application. bgneal@51: bgneal@51: """ bgneal@180: from django.conf.urls import url bgneal@51: from django.views.generic import TemplateView bgneal@51: bgneal@180: import email_list.views bgneal@51: bgneal@180: bgneal@180: urlpatterns = [ bgneal@51: url(r'^$', bgneal@180: email_list.views.mailing_list, bgneal@51: name='email_list-main'), bgneal@51: url(r'^confirm/(?P[-a-zA-Z0-9_=]{28})/$', bgneal@180: email_list.views.confirm, bgneal@51: name='email_list-confirm'), bgneal@51: url(r'^request/subscribe/$', bgneal@51: TemplateView.as_view(template_name='email_list/subscribe_request.html'), bgneal@51: name='email_list-request_subscribe'), bgneal@51: url(r'^request/unsubscribe/$', bgneal@51: TemplateView.as_view(template_name='email_list/unsubscribe_request.html'), bgneal@51: name='email_list-request_unsubscribe'), bgneal@51: url(r'^subscribed/$', bgneal@51: TemplateView.as_view(template_name='email_list/subscribed.html'), bgneal@51: name='email_list-subscribed'), bgneal@51: url(r'^unsubscribed/$', bgneal@51: TemplateView.as_view(template_name='email_list/unsubscribed.html'), bgneal@51: name='email_list-unsubscribed'), bgneal@180: ]