pretalx-musicrate/pretalx_musicrate/urls.py

53 lines
1.4 KiB
Python
Raw 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 (
2024-02-13 18:39:25 +01:00
AssigneeView,
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(
2024-02-13 18:39:25 +01:00
"orga/event/<slug:event>/",
2023-12-18 01:38:35 +01:00
include(
[
2024-02-13 18:39:25 +01:00
path(
"settings/p/pretalx_musicrate/",
MusicrateSettingsView.as_view(),
name="settings.musicrate",
),
path(
"p/pretalx_musicrate/",
include(
[
path("<code>/", AssigneeView.as_view(), name="assignee"),
path("export/", ExportView.as_view(), name="export"),
]
),
),
2023-12-18 01:38:35 +01:00
]
),
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
]