view email_list/urls.py @ 181:874ecfe6054a

Django 1.8 updates. Update production settings and requirements.
author Brian Neal <bgneal@gmail.com>
date Sun, 13 Dec 2015 21:14:31 -0600
parents 312f198e8958
children
line wrap: on
line source
"""
Urls for the email_list application.

"""
from django.conf.urls import url
from django.views.generic import TemplateView

import email_list.views


urlpatterns = [
   url(r'^$',
       email_list.views.mailing_list,
       name='email_list-main'),
   url(r'^confirm/(?P<key>[-a-zA-Z0-9_=]{28})/$',
       email_list.views.confirm,
       name='email_list-confirm'),
   url(r'^request/subscribe/$',
       TemplateView.as_view(template_name='email_list/subscribe_request.html'),
       name='email_list-request_subscribe'),
   url(r'^request/unsubscribe/$',
       TemplateView.as_view(template_name='email_list/unsubscribe_request.html'),
       name='email_list-request_unsubscribe'),
   url(r'^subscribed/$',
       TemplateView.as_view(template_name='email_list/subscribed.html'),
       name='email_list-subscribed'),
   url(r'^unsubscribed/$',
       TemplateView.as_view(template_name='email_list/unsubscribed.html'),
       name='email_list-unsubscribed'),
]