aboutsummaryrefslogtreecommitdiff
path: root/urls.py
diff options
context:
space:
mode:
authorAlban Gruin2017-09-07 22:40:57 +0200
committerAlban Gruin2017-09-07 22:40:57 +0200
commit36b4c60aacae827b5ff8b6125bdfd70d7cf2a3a0 (patch)
treeea056fedf7819b9342e02d44b48f0dd89229deee /urls.py
parentf18b2cc4f4aa7b2ed2d7801c19ddf75acbb6abc2 (diff)
J’ai fait des trucs mais je me suis rendu compte que c’est pas
terrible, du coup je fais un commit tout pété mais ça va vite changer vous inquiétez pas.
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 c9deef1..5731b44 100644
--- a/urls.py
+++ b/urls.py
@@ -20,10 +20,11 @@ from . import feeds, views
urlpatterns = [
url(r"^$", views.index, name="index"),
url(r"^(?P<year>[-\w]+)/$", views.mention_list, name="mentions"),
+ url(r"^(?P<year>[-\w]+)/(?P<timetable_slug>[-\w]+)/$", views.group_list, name="groups"),
url(r"^(?P<timetable_slug>[-\w]+)/(?P<group_slug>[-\w]+)/$", views.timetable, name="timetable"),
+ url(r"^(?P<timetable_slug>[-\w]+)/(?P<group_slug>[-\w]+)/calendar.ics$", feeds.IcalFeed(), name="ics"),
url(r"^(?P<timetable_slug>[-\w]+)/(?P<group_slug>[-\w]+)/(?P<year>[0-9]{4})/(?P<week>[0-4]?[0-9]|5[0-3])/$", views.timetable, name="timetable"),
url(r"^(?P<timetable_slug>[-\w]+)/(?P<group_slug>[-\w]+)/(?P<year>[0-9]{4})/(?P<week>[0-4]?[0-9]|5[0-3])/subscribe$", views.subscribe, name="subscribe"),
- url(r"^(?P<timetable_slug>[-\w]+)/(?P<group_slug>[-\w]+)/calendar.ics$", feeds.IcalFeed(), name="ics"),
url(r"^subscriptions/confirm/(?P<token>[0-9a-f]{40})$", views.confirm_subscription, name="confirm"),
url(r"^subscriptions/cancel/(?P<token>[0-9a-f]{40})$", views.cancel_subscription, name="cancel"),
]