ernestophone.ens.fr/calendrier/urls.py
2015-04-13 18:56:43 +02:00

9 lines
327 B
Python

from django.conf.urls import patterns, url
urlpatterns = patterns('calendrier.views',
url(r'^new$', 'create_event'),
url(r'^$', 'home'),
url(r'(?P<pYear>\d+)/(?P<pMonth>\d+)/(?P<id>\d+)/?', 'view_event'),
url(r'(?P<pYear>\d+)/(?P<pMonth>\d+)/?$', 'calendar'),
url(r'(?P<id>\d+)/?', 'view_eventbis'),
)