ernestophone.ens.fr/calendrier/urls.py

21 lines
894 B
Python
Raw Normal View History

2018-01-04 23:33:31 +01:00
from django.urls import path
2018-01-04 23:33:31 +01:00
from . import views
from .views import EventUpdate, EventDelete
2015-04-13 18:56:43 +02:00
2018-01-04 23:33:31 +01:00
app_name = "calendrier"
urlpatterns = [
2018-01-05 13:57:17 +01:00
path("", views.home, name="home"),
2018-01-04 23:33:31 +01:00
path("new", views.create_event, name="create_event"),
2018-06-25 20:33:14 +02:00
path("edition/<int:pk>", EventUpdate.as_view(), name="edit_event"),
path("supprimer/<int:pk>", EventDelete.as_view(), name="delete_event"),
2018-01-04 23:33:31 +01:00
path("resend/<int:id>", views.resend, name="resend"),
path("changename", views.changename, name="change-doodle-name"),
path("<int:id>/reponse", views.reponse, name="reponse"),
path("rep/<slug:codeus>/<slug:codeev>/<slug:coderep>", views.reponse_event, name="reponse_event"),
2018-06-25 20:33:14 +02:00
path("<int:pYear>/<int:pMonth>/<int:id>", views.view_event, name="view-event"),
path("<int:pYear>/<int:pMonth>", views.calendar, name="view-month"),
path("<int:id>", views.view_eventbis, name="view-event2"),
]