from django.conf.urls import patterns, url urlpatterns = patterns( 'partitions.views', url(r'^$', 'liste'), url(r'^(?P[^/]+)/(?P[^/]+)/?$', 'listepart'), url(r'^(?P[^/]+)/(?P[^/]+)/upload/?$', 'upload'), url(r'^(?P[^/]+)/(?P[^/]+)/delete/?$', 'delete_morc'), url(r'^(?P[^/]+)/(?P[^/]+)/conf/?$', 'conf_delete_morc'), url(r'^(?P[^/]+)/(?P[^/]+)/see/(?P\d+)/?$', 'see'), url(r'^(?P[^/]+)/(?P[^/]+)/(?P\d+)/$', 'download'), url(r'^(?P[^/]+)/(?P[^/]+)/(?P[^/]+)/delete/?$', 'delete'), url(r'^(?P[^/]+)/(?P[^/]+)/(?P[^/]+)/conf/?$', 'conf_delete'), url(r'^new/?$', 'ajouter_morceau'), )