Sith/sas/urls.py

44 lines
2.0 KiB
Python
Raw 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.
#
#
2017-06-12 08:02:38 +00:00
from django.conf.urls import url
2016-10-26 17:21:19 +00:00
from sas.views import *
urlpatterns = [
url(r'^$', SASMainView.as_view(), name='main'),
2016-11-09 08:23:39 +00:00
url(r'^moderation$', ModerationView.as_view(), name='moderation'),
2016-10-26 17:21:19 +00:00
url(r'^album/(?P<album_id>[0-9]+)$', AlbumView.as_view(), name='album'),
2017-01-05 09:05:13 +00:00
url(r'^album/(?P<album_id>[0-9]+)/upload$', AlbumUploadView.as_view(), name='album_upload'),
2016-11-25 12:47:09 +00:00
url(r'^album/(?P<album_id>[0-9]+)/edit$', AlbumEditView.as_view(), name='album_edit'),
url(r'^album/(?P<album_id>[0-9]+)/preview$', send_album, name='album_preview'),
2016-10-26 17:21:19 +00:00
url(r'^picture/(?P<picture_id>[0-9]+)$', PictureView.as_view(), name='picture'),
2016-11-25 12:47:09 +00:00
url(r'^picture/(?P<picture_id>[0-9]+)/edit$', PictureEditView.as_view(), name='picture_edit'),
2016-10-26 17:21:19 +00:00
url(r'^picture/(?P<picture_id>[0-9]+)/download$', send_pict, name='download'),
2016-11-20 10:56:33 +00:00
url(r'^picture/(?P<picture_id>[0-9]+)/download/compressed$', send_compressed, name='download_compressed'),
url(r'^picture/(?P<picture_id>[0-9]+)/download/thumb$', send_thumb, name='download_thumb'),
2016-10-26 17:21:19 +00:00
# url(r'^album/new$', AlbumCreateView.as_view(), name='album_new'),
# url(r'^(?P<club_id>[0-9]+)/$', ClubView.as_view(), name='club_view'),
]