aboutsummaryrefslogtreecommitdiff
path: root/urls.py
diff options
context:
space:
mode:
authorAlban Gruin2017-11-18 16:04:18 +0100
committerAlban Gruin2017-11-27 12:11:30 +0100
commit599ca85167ad7d53f6434b105cb74c761d994ecf (patch)
treef93cb1001a954f85e10e386349d66e4ed7afcac2 /urls.py
parentac9489cf4faa063c9270a3900a52809306355ea2 (diff)
Liens et URLs pour les emplois du temps des salles
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/urls.py b/urls.py
index b0ca9f4..4c4abe3 100644
--- a/urls.py
+++ b/urls.py
@@ -20,7 +20,8 @@ urlpatterns = [
url(r"^$", views.index, name="index"),
url(r"^pages/", include("django.contrib.flatpages.urls")),
url(r"^salles/$", views.rooms, name="rooms"),
- url(r"^salles/(?P<room_slug>[-\w]+)$", views.room_timetable),
+ url(r"^salles/(?P<room_slug>[-\w]+)$", views.room_timetable, name="room-timetable"),
+ url(r"^salles/(?P<room_slug>[-\w]+)/(?P<year>[0-9]{4})/(?P<week>[0-4]?[0-9]|5[0-3])/$", views.room_timetable, name="room-timetable"),
url(r"^(?P<year_slug>[-\w]+)/$", views.mention_list, name="mentions"),
url(r"^(?P<year_slug>[-\w]+)/(?P<timetable_slug>[-\w]+)/$", views.group_list, name="groups"),
url(r"^(?P<year_slug>[-\w]+)/(?P<timetable_slug>[-\w]+)/(?P<group_slug>[-\w]+)/$", views.timetable, name="timetable"),