Sith/pedagogy/urls.py

51 lines
1.6 KiB
Python
Raw Normal View History

2023-04-06 11:08:42 +00:00
# -*- coding:utf-8 -*-
2019-05-16 14:51:30 +00:00
#
2023-04-06 11:08:42 +00:00
# Copyright 2023 © AE UTBM
# ae@utbm.fr / ae.info@utbm.fr
# All contributors are listed in the CONTRIBUTORS file.
2019-05-16 14:51:30 +00:00
#
2023-04-06 11:08:42 +00:00
# This file is part of the website of the UTBM Student Association (AE UTBM),
# https://ae.utbm.fr.
2019-05-16 14:51:30 +00:00
#
2023-04-06 11:08:42 +00:00
# You can find the whole source code at https://github.com/ae-utbm/sith3
2019-05-16 14:51:30 +00:00
#
2023-04-06 11:08:42 +00:00
# LICENSED UNDER THE GNU GENERAL PUBLIC LICENSE VERSION 3 (GPLv3)
# SEE : https://raw.githubusercontent.com/ae-utbm/sith3/master/LICENSE
# OR WITHIN THE LOCAL FILE "LICENSE"
2019-05-16 14:51:30 +00:00
#
2023-04-06 11:08:42 +00:00
# PREVIOUSLY LICENSED UNDER THE MIT LICENSE,
# SEE : https://raw.githubusercontent.com/ae-utbm/sith3/master/LICENSE.old
# OR WITHIN THE LOCAL FILE "LICENSE.old"
2019-05-16 14:51:30 +00:00
#
2023-01-09 21:07:03 +00:00
from django.urls import path
2019-05-16 14:51:30 +00:00
from pedagogy.views import *
urlpatterns = [
# Urls displaying the actual application for visitors
2023-01-09 21:07:03 +00:00
path("", UVListView.as_view(), name="guide"),
path("uv/<int:uv_id>/", UVDetailFormView.as_view(), name="uv_detail"),
path(
"comment/<int:comment_id>/edit/",
UVCommentUpdateView.as_view(),
name="comment_update",
),
2023-01-09 21:07:03 +00:00
path(
"comment/<int:comment_id>/delete/",
UVCommentDeleteView.as_view(),
name="comment_delete",
2019-05-16 14:51:30 +00:00
),
2023-01-09 21:07:03 +00:00
path(
"comment/<int:comment_id>/report/",
2019-05-16 14:51:30 +00:00
UVCommentReportCreateView.as_view(),
name="comment_report",
),
# Moderation
2023-01-09 21:07:03 +00:00
path("moderation/", UVModerationFormView.as_view(), name="moderation"),
# Administration : Create Update Delete Edit
2023-01-09 21:07:03 +00:00
path("uv/create/", UVCreateView.as_view(), name="uv_create"),
path("uv/<int:uv_id>/delete/", UVDeleteView.as_view(), name="uv_delete"),
path("uv/<int:uv_id>/edit/", UVUpdateView.as_view(), name="uv_update"),
2019-05-16 14:51:30 +00:00
]