pretalx-musicrate/pretalx_musicrate/urls.py

53 lines
1.4 KiB
Python

from django.urls import include, path
from .views import (
AssigneeView,
ExportView,
JoinView,
MayAdvanceView,
MusicrateSettingsView,
PresenterView,
QRCodeView,
RatingView,
)
urlpatterns = [
path(
"orga/event/<slug:event>/",
include(
[
path(
"settings/p/pretalx_musicrate/",
MusicrateSettingsView.as_view(),
name="settings.musicrate",
),
path(
"p/pretalx_musicrate/",
include(
[
path("export/", ExportView.as_view(), name="export"),
path("<code>/", AssigneeView.as_view(), name="assignee"),
]
),
),
]
),
),
path(
"<slug:event>/p/pretalx_musicrate/",
include(
[
path("", QRCodeView.as_view(), name="qrcode"),
path("present/<code>/", PresenterView.as_view(), name="present"),
path(
"present/<code>/may-advance",
MayAdvanceView.as_view(),
name="may_advance",
),
path("<slug:token>/", JoinView.as_view(), name="join"),
path("<slug:token>/<code>/", RatingView.as_view(), name="rating"),
]
),
),
]