Mercurial > public > madeira
comparison email_list/urls.py @ 71:e2868ad47a1e
For Django 1.4, using the new manage.py.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 14 Apr 2012 16:40:29 -0500 |
parents | madeira/email_list/urls.py@9b9daefba97a |
children | 312f198e8958 |
comparison
equal
deleted
inserted
replaced
70:f26cdda0ad8b | 71:e2868ad47a1e |
---|---|
1 """ | |
2 Urls for the email_list application. | |
3 | |
4 """ | |
5 from django.conf.urls import patterns, url | |
6 from django.views.generic import TemplateView | |
7 | |
8 | |
9 urlpatterns = patterns('email_list.views', | |
10 url(r'^$', | |
11 'mailing_list', | |
12 name='email_list-main'), | |
13 url(r'^confirm/(?P<key>[-a-zA-Z0-9_=]{28})/$', | |
14 'confirm', | |
15 name='email_list-confirm'), | |
16 url(r'^request/subscribe/$', | |
17 TemplateView.as_view(template_name='email_list/subscribe_request.html'), | |
18 name='email_list-request_subscribe'), | |
19 url(r'^request/unsubscribe/$', | |
20 TemplateView.as_view(template_name='email_list/unsubscribe_request.html'), | |
21 name='email_list-request_unsubscribe'), | |
22 url(r'^subscribed/$', | |
23 TemplateView.as_view(template_name='email_list/subscribed.html'), | |
24 name='email_list-subscribed'), | |
25 url(r'^unsubscribed/$', | |
26 TemplateView.as_view(template_name='email_list/unsubscribed.html'), | |
27 name='email_list-unsubscribed'), | |
28 ) |