from django.conf.urls import patterns, url from calendrier.views import EventUpdate, EventDelete urlpatterns = patterns( 'calendrier.views', url(r'^new$', 'create_event'), url(r'^$', 'home'), url(r'^edition/(?P\d+)$', EventUpdate.as_view()), url(r'^supprimer/(?P\d+)$', EventDelete.as_view()), url(r'^resend/(?P\d+)$', 'resend'), url(r'^changename/?$', 'changename'), url(r'(?P\d+)/reponse/?', 'reponse'), url(r'(?P\w{6})/(?P\w{6})/oui', 'repouidir'), url(r'(?P\w{6})/(?P\w{6})/pe', 'reppedir'), url(r'(?P\w{6})/(?P\w{6})/non', 'repnondir'), url(r'(?P\d+)/(?P\d+)/(?P\d+)/?', 'view_event'), url(r'(?P\d+)/(?P\d+)/?$', 'calendar'), url(r'(?P\d+)/?', 'view_eventbis', name='view-event'), )