Sith/trombi/urls.py

84 lines
2.5 KiB
Python
Raw Permalink Normal View History

2023-04-06 11:08:42 +00:00
# -*- coding:utf-8 -*-
2017-05-09 21:42:01 +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.
2017-05-09 21:42:01 +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.
2017-05-09 21:42:01 +00:00
#
2023-04-06 11:08:42 +00:00
# You can find the whole source code at https://github.com/ae-utbm/sith3
2017-05-09 21:42:01 +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"
2017-05-09 21:42:01 +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"
2017-05-09 21:42:01 +00:00
#
2023-01-09 21:07:03 +00:00
from django.urls import path
2017-05-09 21:42:01 +00:00
2017-05-10 20:17:05 +00:00
from trombi.views import *
2017-05-09 21:42:01 +00:00
urlpatterns = [
2023-01-09 21:07:03 +00:00
path("<int:club_id>/new/", TrombiCreateView.as_view(), name="create"),
path("<int:trombi_id>/export/", TrombiExportView.as_view(), name="export"),
path("<int:trombi_id>/edit/", TrombiEditView.as_view(), name="edit"),
path(
"<int:trombi_id>/moderate_comments/",
2018-10-04 19:29:19 +00:00
TrombiModerateCommentsView.as_view(),
name="moderate_comments",
),
2023-01-09 21:07:03 +00:00
path(
"<int:comment_id>/moderate/",
2018-10-04 19:29:19 +00:00
TrombiModerateCommentView.as_view(),
name="moderate_comment",
),
2023-01-09 21:07:03 +00:00
path(
"user/<int:user_id>/delete/",
2018-10-04 19:29:19 +00:00
TrombiDeleteUserView.as_view(),
name="delete_user",
),
2023-01-09 21:07:03 +00:00
path("<int:trombi_id>/", TrombiDetailView.as_view(), name="detail"),
path(
"<int:user_id>/new_comment/",
2018-10-04 19:29:19 +00:00
TrombiCommentCreateView.as_view(),
name="new_comment",
),
2023-01-09 21:07:03 +00:00
path(
"<int:user_id>/profile/",
2018-10-04 19:29:19 +00:00
UserTrombiProfileView.as_view(),
name="user_profile",
),
2023-01-09 21:07:03 +00:00
path(
"comment/<int:comment_id>/edit/",
2018-10-04 19:29:19 +00:00
TrombiCommentEditView.as_view(),
name="edit_comment",
),
2023-01-09 21:07:03 +00:00
path("tools/", UserTrombiToolsView.as_view(), name="user_tools"),
path("profile/", UserTrombiEditProfileView.as_view(), name="profile"),
path("pictures/", UserTrombiEditPicturesView.as_view(), name="pictures"),
path(
"reset_memberships/",
2018-10-04 19:29:19 +00:00
UserTrombiResetClubMembershipsView.as_view(),
name="reset_memberships",
),
2023-01-09 21:07:03 +00:00
path(
"membership/<int:membership_id>/edit/",
2018-10-04 19:29:19 +00:00
UserTrombiEditMembershipView.as_view(),
name="edit_membership",
),
2023-01-09 21:07:03 +00:00
path(
"membership/<int:membership_id>/delete/",
2018-10-04 19:29:19 +00:00
UserTrombiDeleteMembershipView.as_view(),
name="delete_membership",
),
2023-01-09 21:07:03 +00:00
path(
"membership/<int:user_id>/create/",
UserTrombiAddMembershipView.as_view(),
name="create_membership",
),
2017-05-09 21:42:01 +00:00
]