ernestophone.ens.fr/calendrier/urls.py

18 lines
776 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
2021-04-29 00:27:33 +02:00
from .views import EventDelete, EventUpdate
2015-04-13 18:56:43 +02:00
2021-04-29 00:27:33 +02:00
app_name = "calendrier"
urlpatterns = [
2021-04-29 00:27:33 +02:00
path("", views.Agenda.as_view(), name="liste"),
path("calendar", views.Home.as_view(), name="home"),
path("new", views.CreateEvent.as_view(), 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"),
2021-04-29 00:33:58 +02:00
path("<int:id>/changename", views.ChangeName.as_view(), name="change-doodle-name"),
2021-04-29 00:27:33 +02:00
path("<int:id>/reponse", views.ReponseEvent.as_view(), name="reponse"),
2021-04-29 00:33:58 +02:00
path("<int:pYear>/<int:pMonth>", views.Calendar.as_view(), name="view-month"),
2021-04-29 00:27:33 +02:00
path("<int:id>", views.ViewEvent.as_view(), name="view-event"),
]