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