2017-02-18 01:10:30 +01:00
|
|
|
from django.conf.urls import url
|
2018-11-24 16:53:54 +01:00
|
|
|
from event.views import Index, EventView, EventViewStaff, ActivityView, EnrolActivityView, EventCalendar
|
2017-02-18 01:10:30 +01:00
|
|
|
|
|
|
|
app_name = 'event'
|
|
|
|
urlpatterns = [
|
2018-08-26 21:18:51 +02:00
|
|
|
# url(r'^$', Index.as_view(), name='index'),
|
|
|
|
url(r'^(?P<slug>[-\w]+)/$', EventView.as_view(), name='event'),
|
2018-11-24 16:53:54 +01:00
|
|
|
url(r'^(?P<slug>[-\w]+)/s/(?P<username>[-\w]+)/$', EventViewStaff.as_view(), name='event-staff'),
|
|
|
|
url(r'^(?P<slug>[-\w]+)/calendar/$', EventCalendar.as_view(), name='calendar'),
|
2018-08-26 21:18:51 +02:00
|
|
|
url(r'^activity/(?P<pk>[0-9]+)/$', ActivityView.as_view(),
|
|
|
|
name='activity'),
|
2018-08-28 22:02:04 +02:00
|
|
|
url(r'^activity/(?P<pk>[0-9]+)/enrol/$',
|
|
|
|
EnrolActivityView.as_view(), name="enrol_activity"),
|
2017-02-18 01:10:30 +01:00
|
|
|
]
|