Project

General

Profile

Download (1.54 KB) Statistics
| Branch: | Tag: | Revision:

root / corbo / manage_urls.py @ 8e8b10ae

1
from django.conf.urls import patterns, include, url
2

    
3
from .views import add_announce, edit_announce, delete_announce, \
4
    add_category, edit_category, view_category, delete_category, manage, \
5
    subscriptions_import, view_announce, email_announce, sms_announce, \
6
    menu_json
7

    
8
urlpatterns = patterns('',
9
            url(r'^$', manage, name='manage'),
10
            url(r'^category/(?P<slug>[\w-]+)/announce/$', add_announce,
11
                name='add_announce'),
12
            url(r'^announce/edit/(?P<pk>\d+)$', edit_announce,
13
                name='edit_announce'),
14
            url(r'^announce/delete/(?P<pk>\d+)$', delete_announce,
15
                name='delete_announce'),
16
            url(r'^announce/email/(?P<pk>\d+)/$', email_announce,
17
                name='email_announce'),
18
            url(r'^announce/sms/(?P<pk>\d+)/$', sms_announce,
19
                name='sms_announce'),
20
            url(r'^category/(?P<slug>[\w-]+)/$', view_category,
21
                name='view_category'),
22
            url(r'^announce/(?P<pk>\d+)/$', view_announce,
23
                name='view_announce'),
24
            url(r'^category/add$', add_category,
25
                name='add_category'),
26
            url(r'^category/edit/(?P<slug>[\w-]+)$', edit_category,
27
                name='edit_category'),
28
            url(r'^category/delete/(?P<slug>[\w-]+)$', delete_category,
29
                name='delete_category'),
30
            url(r'^category/(?P<slug>[\w-]+)/import-subscriptions/$', subscriptions_import,
31
                name='subscriptions-import'),
32
            url(r'^menu.json$', menu_json),
33
)
(5-5/13)