comparison email_list/urls.py @ 180:312f198e8958

Changes for Django 1.8.
author Brian Neal <bgneal@gmail.com>
date Sun, 13 Dec 2015 21:04:43 -0600
parents e2868ad47a1e
children
comparison
equal deleted inserted replaced
179:574cdd0241af 180:312f198e8958
1 """ 1 """
2 Urls for the email_list application. 2 Urls for the email_list application.
3 3
4 """ 4 """
5 from django.conf.urls import patterns, url 5 from django.conf.urls import url
6 from django.views.generic import TemplateView 6 from django.views.generic import TemplateView
7 7
8 import email_list.views
8 9
9 urlpatterns = patterns('email_list.views', 10
11 urlpatterns = [
10 url(r'^$', 12 url(r'^$',
11 'mailing_list', 13 email_list.views.mailing_list,
12 name='email_list-main'), 14 name='email_list-main'),
13 url(r'^confirm/(?P<key>[-a-zA-Z0-9_=]{28})/$', 15 url(r'^confirm/(?P<key>[-a-zA-Z0-9_=]{28})/$',
14 'confirm', 16 email_list.views.confirm,
15 name='email_list-confirm'), 17 name='email_list-confirm'),
16 url(r'^request/subscribe/$', 18 url(r'^request/subscribe/$',
17 TemplateView.as_view(template_name='email_list/subscribe_request.html'), 19 TemplateView.as_view(template_name='email_list/subscribe_request.html'),
18 name='email_list-request_subscribe'), 20 name='email_list-request_subscribe'),
19 url(r'^request/unsubscribe/$', 21 url(r'^request/unsubscribe/$',
23 TemplateView.as_view(template_name='email_list/subscribed.html'), 25 TemplateView.as_view(template_name='email_list/subscribed.html'),
24 name='email_list-subscribed'), 26 name='email_list-subscribed'),
25 url(r'^unsubscribed/$', 27 url(r'^unsubscribed/$',
26 TemplateView.as_view(template_name='email_list/unsubscribed.html'), 28 TemplateView.as_view(template_name='email_list/unsubscribed.html'),
27 name='email_list-unsubscribed'), 29 name='email_list-unsubscribed'),
28 ) 30 ]