You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

18 lines
796 B

from django.urls import path
from apps.events.views import (
EventListCreateView,
EventDetailView,
EventRegisterView,
EventCancelRegistrationView,
EventRegistrationsListView,
EventCalendarView,
)
urlpatterns = [
path('', EventListCreateView.as_view(), name='event-list-create'),
path('calendar/', EventCalendarView.as_view(), name='event-calendar'),
path('<str:id_or_slug>/', EventDetailView.as_view(), name='event-detail'),
path('<str:id_or_slug>/register/', EventRegisterView.as_view(), name='event-register'),
path('<str:id_or_slug>/cancel-registration/', EventCancelRegistrationView.as_view(), name='event-cancel-registration'),
path('<str:id_or_slug>/registrations/', EventRegistrationsListView.as_view(), name='event-registrations-list'),
]