Mercurial > public > madeira
diff 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 |
line wrap: on
line diff
--- a/email_list/urls.py Tue Oct 20 20:38:34 2015 -0500 +++ b/email_list/urls.py Sun Dec 13 21:04:43 2015 -0600 @@ -2,16 +2,18 @@ Urls for the email_list application. """ -from django.conf.urls import patterns, url +from django.conf.urls import url from django.views.generic import TemplateView +import email_list.views -urlpatterns = patterns('email_list.views', + +urlpatterns = [ url(r'^$', - 'mailing_list', + email_list.views.mailing_list, name='email_list-main'), url(r'^confirm/(?P<key>[-a-zA-Z0-9_=]{28})/$', - 'confirm', + email_list.views.confirm, name='email_list-confirm'), url(r'^request/subscribe/$', TemplateView.as_view(template_name='email_list/subscribe_request.html'), @@ -25,4 +27,4 @@ url(r'^unsubscribed/$', TemplateView.as_view(template_name='email_list/unsubscribed.html'), name='email_list-unsubscribed'), -) +]