urls.py 880 Bytes
Newer Older
1
from django.conf.urls import *
jean-philippe's avatar
jean-philippe committed
2
from django.conf import settings
fred's avatar
fred committed
3
from .views import unsubscription
4 5

urlpatterns = patterns('',
fred's avatar
fred committed
6 7
    url(r'^$', 'newsletter.views.subscribe', name='newsletter-subscribe'),
    url(r'^thanks/$', 'newsletter.views.thanks', name='newsletter-thanks'),
fred's avatar
fred committed
8
    url(r'^(?P<token>[0-9a-f]{40})$', 'newsletter.views.confirmation', name='newsletter-confirmation'),
fred's avatar
fred committed
9
    url(r'^stats/$', 'newsletter.views.stats'),
jean-philippe's avatar
jean-philippe committed
10
    url(r'^unsubscription/$', unsubscription),
11
)
12 13 14 15 16 17

management_patterns = patterns('newsletter.views',
    url(r'^$', 'newsletter_list', name='newsletter-list'),
    url(r'^add$', 'newsletter_create', name='newsletter-create'),
    url(r'^(?P<pk>\d+)/$', 'newsletter_view', name='newsletter-view'),
    url(r'^(?P<pk>\d+)/edit$', 'newsletter_update', name='newsletter-edit'),
fred's avatar
fred committed
18
    url(r'^(?P<pk>\d+)/send$', 'newsletter_send', name='newsletter-send'),
19
)