From b219f1248fa84eb2b015a5a04f80905dad8904ae Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Fri, 17 Nov 2017 16:11:55 +0100 Subject: Page principale de l’emploi du temps des salles --- urls.py | 1 + views.py | 3 +++ 2 files changed, 4 insertions(+) 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[-\w]+)/$", views.mention_list, name="mentions"), url(r"^(?P[-\w]+)/(?P[-\w]+)/$", views.group_list, name="groups"), url(r"^(?P[-\w]+)/(?P[-\w]+)/(?P[-\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} -- cgit v1.2.1