Project

General

Profile

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

root / corbo / manage_urls.py @ d0bd7a5a

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, menu_json
6

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