pretalx-musicrate/pretalx_musicrate/urls.py

40 lines
1.1 KiB
Python
Raw Permalink Normal View History

2023-12-15 02:48:31 +01:00
from django.urls import include, path
2023-12-13 23:58:00 +01:00
from .views import (
2023-12-18 01:38:35 +01:00
ExportView,
JoinView,
MayAdvanceView,
MusicrateSettingsView,
PresenterView,
QRCodeView,
2023-12-16 01:05:05 +01:00
RatingView,
)
2023-12-13 23:58:00 +01:00
urlpatterns = [
2023-12-15 02:48:31 +01:00
path(
"orga/event/<slug:event>/settings/p/pretalx_musicrate/",
2023-12-18 01:38:35 +01:00
include(
[
path("", MusicrateSettingsView.as_view(), name="settings.musicrate"),
path("export/", ExportView.as_view(), name="export"),
]
),
2023-12-13 23:58:00 +01:00
),
2023-12-15 02:48:31 +01:00
path(
"<slug:event>/p/pretalx_musicrate/",
include(
[
path("", QRCodeView.as_view(), name="qrcode"),
2023-12-15 17:12:12 +01:00
path("present/<code>/", PresenterView.as_view(), name="present"),
path(
"present/<code>/may-advance",
MayAdvanceView.as_view(),
name="may_advance",
),
2023-12-15 02:52:49 +01:00
path("<slug:token>/", JoinView.as_view(), name="join"),
2023-12-16 01:05:05 +01:00
path("<slug:token>/<code>/", RatingView.as_view(), name="rating"),
2023-12-15 02:48:31 +01:00
]
),
),
2023-12-13 23:58:00 +01:00
]