aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}