poulpe/event/urls.py
2018-08-28 22:19:24 +02:00

12 lines
481 B
Python

from django.conf.urls import url
from event.views import Index, EventView, ActivityView, EnrolActivityView
app_name = 'event'
urlpatterns = [
# url(r'^$', Index.as_view(), name='index'),
url(r'^(?P<slug>[-\w]+)/$', EventView.as_view(), name='event'),
url(r'^activity/(?P<pk>[0-9]+)/$', ActivityView.as_view(),
name='activity'),
url(r'^activity/(?P<pk>[0-9]+)/enrol/$',
EnrolActivityView.as_view(), name="enrol_activity"),
]