aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlban Gruin2017-11-17 16:11:55 +0100
committerAlban Gruin2017-11-27 12:11:30 +0100
commitb219f1248fa84eb2b015a5a04f80905dad8904ae (patch)
treea163bfe58f5642c511b023de6bfaef7ec70cd8c4
parent3991efeb9af75ad55ec373422da3c11ea2d36e6e (diff)
Page principale de l’emploi du temps des salles
-rw-r--r--urls.py1
-rw-r--r--views.py3
2 files changed, 4 insertions, 0 deletions
diff --git a/urls.py b/urls.py
index 487994e..4de8103 100644
--- a/urls.py
+++ b/urls.py
@@ -19,6 +19,7 @@ from . import feeds, views
urlpatterns = [
url(r"^$", views.index, name="index"),
url(r"^pages/", include("django.contrib.flatpages.urls")),
+ url(r"^salles/", views.rooms, name="rooms"),
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"),
diff --git a/views.py b/views.py
index c647fac..c008052 100644
--- a/views.py
+++ b/views.py
@@ -96,5 +96,8 @@ def calendars(request, year_slug, timetable_slug, group_slug):
return render(request, "calendars.html", {"group": group, "groups": groups})
+def rooms(request):
+ return render(request, "index.html")
+
def ctx_processor(request):
return {"celcatsanitizer_version": edt.VERSION}