# -*- coding: utf-8 -*- from django.conf.urls import url from events.views import ( EventListView, EventCreateView, EventUpdateView, EventDeleteView, ActivityListView, ActivityCreateView, ActivityUpdateView, ActivityDeleteView ) urlpatterns = [ url(r'^$', EventListView.as_view(), name='list'), url(r'^create/$', EventCreateView.as_view(), name='create'), url(r'^(?P<pk>\d+)/update/$', EventUpdateView.as_view(), name='update'), url(r'^(?P<pk>\d+)/delete/$', EventDeleteView.as_view(), name='delete'), url(r'^activity/(?P<pk>\d+)/$', ActivityListView.as_view(), name='list_activity'), url(r'^activity/create/(?P<pk>\d+)/$', ActivityCreateView.as_view(), name='create_activity'), url(r'^activity/update/(?P<pk>\d+)/$', ActivityUpdateView.as_view(), name='update_activity'), url(r'^activity/delete/(?P<pk>\d+)/$', ActivityDeleteView.as_view(), name='delete_activity'), #url(r'^(?P<pk>\d+)/activity/(?A<pk>\d+)/$', ActivityListView.as_view(), name='list_activity'), #url(r'^(?P<pk>\d+)/activity/(?A<pk>\d+)/create/$', ActivityCreateView.as_view(), name='create_activity'), #url(r'^(?P<pk>\d+)/activity/(?A<pk>\d+)/update/$', ActivityUpdateView.as_view(), name='update_activity'), #url(r'^(?P<pk>\d+)/activity/(?A<pk>\d+)/delete/$', ActivityDeleteView.as_view(), name='delete_activity'), ]
from django.conf.urls import url from events.forms import EventCreateForm from events.views import EventCreateView, EventUpdateView, EventImageCreateView, EventImageUpdateView, EventDeleteView, \ EventImageDeleteView, EventDetailView urlpatterns = [ url(r'^create/', EventCreateView.as_view(), name="Event_add"), url(r'^edit/(?P<pk>[0-9]+)', EventUpdateView.as_view(), name="Event_edit"), url(r'^addimage/', EventImageCreateView.as_view(), name="eventimage_add"), url(r'^event/(?P<pk>[0-9]+)', EventDetailView.as_view(), name="event_detail"), url(r'^editimage/(?P<pk>[0-9]+)', EventImageUpdateView.as_view(), name="eventimage_edit"), url(r'^deleteimage/(?P<pk>[0-9]+)/', EventDeleteView.as_view(), name="eventimage_delete"), url(r'^delete/(?P<pk>[0-9]+)', EventImageDeleteView.as_view(), name="event_delete"), ]
from django.urls import path from events.views import EventCreateView, MyEventView, EventView, EventDeleteView, EventUpdateView app_name = 'events' urlpatterns = [ path('', EventView.as_view(), name="view_events"), path('my-events', MyEventView.as_view(), name="my_events"), path('create/', EventCreateView.as_view(), name="create_event"), path('delete/<int:pk>', EventDeleteView.as_view(), name="delete_event"), path('update/<int:pk>', EventUpdateView.as_view(), name="update_event"), ]
url(r'^create/$', EventCreateView.as_view(), name='event_create'), url(r'^create-from-template/(?P<pk>\d+)/$', EventCreateFromTemplateView.as_view(), name='event_create_from_template'), url(r'^event-staff/$', StaffDashboardView.as_view(), name='event_staff'), url(r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/(?P<slug>[-\w]+)/' 'delete/$', EventDeleteView.as_view(), name='event_delete'), url(r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/(?P<slug>[-\w]+)/' 'update/$', EventUpdateView.as_view(), name='event_update'), url(r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/(?P<slug>[-\w]+)/$', 'events.views.view_event', name='event_detail'), url(r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/(?P<slug>[-\w]+)/$', EventDetailView.as_view(), name='event_detail'),
from django.urls import path, include from events.views import index, dashboard, EventListView, EventDetailView, EventCreateView, EventDeleteView, EventUpdateView, register_for_event, edit_registration, delete_registration, my_events, view_registrations, custom_register_for_event, customise_reg_form, view_event, view_event_by_hashed_url, search_events urlpatterns = [ path('', index, name='index'), path('dashboard/', dashboard, name='dashboard'), path('registrations/<int:pk>/delete', delete_registration, name='delete_registration'), path('my_events/', my_events, name='my_events'), path('<str:url>/registrations/', view_registrations, name='view_registrations'), path('events/', EventListView.as_view(), name='event_list'), path('events/<int:pk>/', EventDetailView.as_view(), name='event_detail'), path('events/new', EventCreateView.as_view(), name='create_event'), path('<str:url>/delete', EventDeleteView.as_view(), name='delete_event'), path('<str:url>/update', EventUpdateView.as_view(), name='update_event'), path('<str:url>/register', custom_register_for_event, name='register_for_event'), path('<str:url>/form', customise_reg_form, name='customise_reg_form'), path('events/<str:url>', view_event, name='view_event'), path('events/<str:hashed_url>', view_event_by_hashed_url, name='view_event_by_hashed_url'), path('search/', search_events, name='search_events'), #path('events/edit_registration/<int:pk>/', edit_registration, name = 'edit_registration'), ]