Project

General

Profile

Download (738 Bytes) Statistics
| Branch: | Tag: | Revision:

calebasse / calebasse / ressources / urls.py @ 1164bc89

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

    
3
from calebasse.ressources.views import update_school_view, new_school_view
4

    
5
ressource_patterns = patterns('calebasse.ressources.views',
6
    url(r'^$', 'list_view', name='ressource-list'),
7
    url(r'^new/$', 'create_view', name='ressource-create'), 
8
    url(r'^(?P<pk>\d+)/$', 'update_view', name='ressource-edit'),
9
    url(r'^(?P<pk>\d+)/delete/$', 'delete_view', name='ressource-delete'),
10
)
11

    
12
urlpatterns = patterns('',
13
    url(r'^school/(?P<pk>\d+)/$', update_school_view),
14
    url(r'^school/new/$', new_school_view),
15
    url(r'^(?P<model_name>[a-z-]*)/', include(ressource_patterns)),
16
    url(r'^$', 'calebasse.ressources.views.homepage',
17
        name='ressource-homepage'),
18
    )
19

    
20

    
(7-7/8)