Sith/sas/urls.py

20 lines
1.1 KiB
Python
Raw Normal View History

2016-10-26 17:21:19 +00:00
from django.conf.urls import url, include
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'),
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'),
]