annotate email_list/urls.py @ 165:1f55bb14833d

Fix mailing list link in admin. For Django 1.7 upgrade.
author Brian Neal <bgneal@gmail.com>
date Thu, 02 Apr 2015 20:12:12 -0500
parents e2868ad47a1e
children 312f198e8958
rev   line source
bgneal@51 1 """
bgneal@51 2 Urls for the email_list application.
bgneal@51 3
bgneal@51 4 """
bgneal@66 5 from django.conf.urls import patterns, url
bgneal@51 6 from django.views.generic import TemplateView
bgneal@51 7
bgneal@51 8
bgneal@51 9 urlpatterns = patterns('email_list.views',
bgneal@51 10 url(r'^$',
bgneal@51 11 'mailing_list',
bgneal@51 12 name='email_list-main'),
bgneal@51 13 url(r'^confirm/(?P<key>[-a-zA-Z0-9_=]{28})/$',
bgneal@51 14 'confirm',
bgneal@51 15 name='email_list-confirm'),
bgneal@51 16 url(r'^request/subscribe/$',
bgneal@51 17 TemplateView.as_view(template_name='email_list/subscribe_request.html'),
bgneal@51 18 name='email_list-request_subscribe'),
bgneal@51 19 url(r'^request/unsubscribe/$',
bgneal@51 20 TemplateView.as_view(template_name='email_list/unsubscribe_request.html'),
bgneal@51 21 name='email_list-request_unsubscribe'),
bgneal@51 22 url(r'^subscribed/$',
bgneal@51 23 TemplateView.as_view(template_name='email_list/subscribed.html'),
bgneal@51 24 name='email_list-subscribed'),
bgneal@51 25 url(r'^unsubscribed/$',
bgneal@51 26 TemplateView.as_view(template_name='email_list/unsubscribed.html'),
bgneal@51 27 name='email_list-unsubscribed'),
bgneal@51 28 )