ernestophone.ens.fr/partitions/urls.py

41 lines
1.4 KiB
Python
Raw Permalink Normal View History

2018-01-04 23:33:31 +01:00
from django.urls import path
2015-03-17 19:03:51 +01:00
2018-01-04 23:33:31 +01:00
from . import views
2021-04-29 00:27:33 +02:00
app_name = "partitions"
urlpatterns = [
2021-04-29 00:27:33 +02:00
path("", views.Repertoire.as_view(), name="liste"),
path("download", views.download_musecores, name="download_musecores"),
2022-01-09 01:18:50 +01:00
path("setlist/", views.SetListListView.as_view(), name="list_setlist"),
path("setlist/create", views.SetListCreate.as_view(), name="create_setlist"),
path(
"setlist/<int:pk>/update", views.SetListUpdate.as_view(), name="update_setlist"
),
path(
"setlist/<int:pk>/delete", views.SetListDelete.as_view(), name="delete_setlist"
),
2021-04-29 00:33:58 +02:00
path("<str:nom>/<str:auteur>/upload", views.Upload.as_view(), name="upload"),
2021-04-29 00:27:33 +02:00
path("<str:nom>/<str:auteur>", views.Morceau.as_view(), name="listepart"),
2021-04-29 00:33:58 +02:00
path("<str:nom>/<str:auteur>/see/<int:partition_id>", views.see, name="see"),
path("<str:nom>/<str:auteur>/<int:partition_id>", views.download, name="download"),
2021-04-29 00:27:33 +02:00
path(
2021-04-29 00:33:58 +02:00
"<str:nom>/<str:auteur>/<int:id>/conf",
views.ConfDelete.as_view(),
name="conf_delete",
),
path(
"<str:nom>/<str:auteur>/<int:id>/delete",
views.DeletePart.as_view(),
name="delete",
),
path(
"<str:nom>/<str:auteur>/delete", views.DeleteMorc.as_view(), name="delete_morc"
),
path(
"<str:nom>/<str:auteur>/conf",
views.ConfDeleteMorc.as_view(),
name="conf_delete_morc",
2021-04-29 00:27:33 +02:00
),
path("new", views.CreateMorc.as_view(), name="ajouter_morceau"),
]