2015-03-17 19:03:51 +01:00
|
|
|
from django.conf.urls import patterns, url
|
|
|
|
|
2016-07-14 01:58:52 +02:00
|
|
|
urlpatterns = patterns(
|
|
|
|
'partitions.views',
|
2015-03-17 19:03:51 +01:00
|
|
|
url(r'^$', 'liste'),
|
|
|
|
url(r'^(?P<nom>[^/]+)/(?P<auteur>[^/]+)/?$', 'listepart'),
|
|
|
|
url(r'^(?P<nom>[^/]+)/(?P<auteur>[^/]+)/upload/?$', 'upload'),
|
|
|
|
url(r'^(?P<nom>[^/]+)/(?P<auteur>[^/]+)/delete/?$', 'delete_morc'),
|
|
|
|
url(r'^(?P<nom>[^/]+)/(?P<auteur>[^/]+)/conf/?$', 'conf_delete_morc'),
|
2016-07-14 01:58:52 +02:00
|
|
|
url(r'^(?P<nom>[^/]+)/(?P<auteur>[^/]+)/see/(?P<partition_id>\d+)/?$',
|
|
|
|
'see'),
|
|
|
|
url(r'^(?P<nom>[^/]+)/(?P<auteur>[^/]+)/(?P<partition_id>\d+)/$',
|
|
|
|
'download'),
|
|
|
|
url(r'^(?P<nom>[^/]+)/(?P<auteur>[^/]+)/(?P<id>[^/]+)/delete/?$',
|
|
|
|
'delete'),
|
|
|
|
url(r'^(?P<nom>[^/]+)/(?P<auteur>[^/]+)/(?P<id>[^/]+)/conf/?$',
|
|
|
|
'conf_delete'),
|
2015-03-17 19:03:51 +01:00
|
|
|
url(r'^new/?$', 'ajouter_morceau'),
|
|
|
|
)
|