kwargs={ 'periods': [Day], 'template_name': 'schedule/calendar_day.html' }), url( r'^calendar/(?P<calendar_slug>[-\w]+)/$', CalendarView.as_view(), name="calendar_home", ), url(r'^fullcalendar/(?P<calendar_slug>[-\w]+)/$', FullCalendarView.as_view(), name='fullcalendar'), # Event Urls url(r'^event/create/(?P<calendar_slug>[-\w]+)/$', CreateEventView.as_view(), name='calendar_create_event'), url(r'^event/edit/(?P<calendar_slug>[-\w]+)/(?P<event_id>\d+)/$', EditEventView.as_view(), name='edit_event'), url(r'^event/(?P<event_id>\d+)/$', EventView.as_view(), name="event"), url(r'^event/delete/(?P<event_id>\d+)/$', DeleteEventView.as_view(), name="delete_event"), # urls for already persisted occurrences url(r'^occurrence/(?P<event_id>\d+)/(?P<occurrence_id>\d+)/$', OccurrenceView.as_view(), name="occurrence"), url(r'^occurrence/cancel/(?P<event_id>\d+)/(?P<occurrence_id>\d+)/$', CancelOccurrenceView.as_view(),
name='home'), url(r'^signup/', views.signup, name='signup'), url(r'^login/$', auth_views.login, {'template_name': 'MS/login.html'}, name='login'), url(r'^logout/$', auth_views.logout, {'template_name': 'MS/logged_out.html'}, name='logout'), url(r'^change/(?P<type>[a-z]+)/$', views.change, name='change'), url(r'^admin/', admin.site.urls), url(r'^creategroup/$', views.creategroup, name='creategroup'), url(r'^calendar/.*', TemplateView.as_view(template_name='MS/fullcalendar.html'), name='calendar'), url(r'^create_event/(?P<calendar_slug>[-\w]+)/$', CreateEventView.as_view(template_name='MS/create_event.html'), name='calendar_create_event'), url(r'^groupcalendar/', views.api_group, name='api_group'), url(r'^viewallgroups/', TemplateView.as_view(template_name='MS/viewallgroups.html'), name='viewallgroups'), url(r'^ajax/viewadmingroups/$', views.viewadmingroups, name='viewadmingroups'), url(r'^ajax/showgroup/', views.showgroup, name='showgroup'), url(r'^groups/(?P<group_name>([0-9a-zA-Z_]*))/$', views.showonegroupfunc, name='groups'), url(r'^ajax/addnewmember/', views.addnewmember, name='addnewmember'), url(r'^ajax/deletemember/', views.deletemember, name='deletemember'), url(r'^ajax/deletegroup/', views.deletegroup, name='deletegroup'),
url(r'^calendar/daily/(?P<calendar_slug>[-\w]+)/$', CalendarByPeriodsView.as_view(), name="day_calendar", kwargs={'periods': [Day], 'template_name': 'schedule/calendar_day.html'}), url(r'^calendar/(?P<calendar_slug>[-\w]+)/$', CalendarView.as_view(), name="calendar_home", ), url(r'^fullcalendar/(?P<calendar_slug>[-\w]+)/$', FullCalendarView.as_view(), name='fullcalendar'), # Event Urls url(r'^event/create/(?P<calendar_slug>[-\w]+)/$', CreateEventView.as_view(), name='calendar_create_event'), url(r'^event/edit/(?P<calendar_slug>[-\w]+)/(?P<event_id>\d+)/$', EditEventView.as_view(), name='edit_event'), url(r'^event/(?P<event_id>\d+)/$', EventView.as_view(), name="event"), url(r'^event/delete/(?P<event_id>\d+)/$', DeleteEventView.as_view(), name="delete_event"), # urls for already persisted occurrences url(r'^occurrence/(?P<event_id>\d+)/(?P<occurrence_id>\d+)/$', OccurrenceView.as_view(), name="occurrence"),