Project

General

Profile

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

calebasse / calebasse / ressources / urls.py @ dd986559

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

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

    
10
urlpatterns = patterns('',
11
    url(r'^(?P<model_name>[a-z-]*)/', include(ressource_patterns)),
12
    url(r'^$', 'calebasse.ressources.views.homepage',
13
        name='ressource-homepage'),
14
    )
15

    
16

    
(6-6/7)