pretalx-musicrate/pretalx_musicrate/urls.py

35 lines
936 B
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 (
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-14 02:52:59 +01:00
MusicrateSettingsView.as_view(),
2023-12-13 23:58:00 +01:00
name="settings",
),
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
]