Mercurial > public > madeira
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/email_list/urls.py Sat Apr 14 16:40:29 2012 -0500 @@ -0,0 +1,28 @@ +""" +Urls for the email_list application. + +""" +from django.conf.urls import patterns, url +from django.views.generic import TemplateView + + +urlpatterns = patterns('email_list.views', + url(r'^$', + 'mailing_list', + name='email_list-main'), + url(r'^confirm/(?P<key>[-a-zA-Z0-9_=]{28})/$', + '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'), +)