Sith/sas/urls.py

62 lines
2.2 KiB
Python
Raw Permalink Normal View History

# -*- coding:utf-8 -*
#
# Copyright 2016,2017
# - Skia <skia@libskia.so>
#
# Ce fichier fait partie du site de l'Association des Étudiants de l'UTBM,
# http://ae.utbm.fr.
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License a published by the Free Software
# Foundation; either version 3 of the License, or (at your option) any later
# version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Sofware Foundation, Inc., 59 Temple
# Place - Suite 330, Boston, MA 02111-1307, USA.
#
#
2019-10-05 16:14:41 +00:00
from django.urls import re_path
2016-10-26 17:21:19 +00:00
from sas.views import *
urlpatterns = [
2019-10-05 16:14:41 +00:00
re_path(r"^$", SASMainView.as_view(), name="main"),
re_path(r"^moderation$", ModerationView.as_view(), name="moderation"),
re_path(r"^album/(?P<album_id>[0-9]+)$", AlbumView.as_view(), name="album"),
re_path(
2018-10-04 19:29:19 +00:00
r"^album/(?P<album_id>[0-9]+)/upload$",
AlbumUploadView.as_view(),
name="album_upload",
),
2019-10-05 16:14:41 +00:00
re_path(
2018-10-04 19:29:19 +00:00
r"^album/(?P<album_id>[0-9]+)/edit$", AlbumEditView.as_view(), name="album_edit"
),
2019-10-05 16:14:41 +00:00
re_path(r"^album/(?P<album_id>[0-9]+)/preview$", send_album, name="album_preview"),
re_path(r"^picture/(?P<picture_id>[0-9]+)$", PictureView.as_view(), name="picture"),
re_path(
2018-10-04 19:29:19 +00:00
r"^picture/(?P<picture_id>[0-9]+)/edit$",
PictureEditView.as_view(),
name="picture_edit",
),
2019-10-05 16:14:41 +00:00
re_path(r"^picture/(?P<picture_id>[0-9]+)/download$", send_pict, name="download"),
re_path(
2018-10-04 19:29:19 +00:00
r"^picture/(?P<picture_id>[0-9]+)/download/compressed$",
send_compressed,
name="download_compressed",
),
2019-10-05 16:14:41 +00:00
re_path(
2018-10-04 19:29:19 +00:00
r"^picture/(?P<picture_id>[0-9]+)/download/thumb$",
send_thumb,
name="download_thumb",
),
2019-10-05 16:14:41 +00:00
# re_path(r'^album/new$', AlbumCreateView.as_view(), name='album_new'),
# re_path(r'^(?P<club_id>[0-9]+)/$', ClubView.as_view(), name='club_view'),
2016-10-26 17:21:19 +00:00
]