From eea68427e8a84ceae7f41409bd07615af4490d2e Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Tue, 5 Sep 2017 22:48:25 +0200 Subject: Implémentation d’un flux ICS (icalendar) par groupe. Non testé avec un client ICS pour l’instant. --- urls.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'urls.py') diff --git a/urls.py b/urls.py index 5557612..3faa78d 100644 --- a/urls.py +++ b/urls.py @@ -15,13 +15,16 @@ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. from django.conf.urls import url + from . import views +from .feeds import IcalFeed urlpatterns = [ url(r"^$", views.index, name="index"), url(r"^(?P[-\w]+)/(?P[-\w]+)/$", views.timetable, name="timetable"), url(r"^(?P[-\w]+)/(?P[-\w]+)/(?P[0-9]{4})/(?P[0-4]?[0-9]|5[0-3])/$", views.timetable, name="timetable"), url(r"^(?P[-\w]+)/(?P[-\w]+)/(?P[0-9]{4})/(?P[0-4]?[0-9]|5[0-3])/subscribe$", views.subscribe, name="subscribe"), + url(r"^(?P[-\w]+)/(?P[-\w]+)/calendar.ics$", IcalFeed(), name="ics"), url(r"^subscriptions/confirm/(?P[0-9a-f]{40})$", views.confirm_subscription, name="confirm"), url(r"^subscriptions/cancel/(?P[0-9a-f]{40})$", views.cancel_subscription, name="cancel"), ] -- cgit v1.2.1