urls.py 1000 Bytes
Newer Older
Skia's avatar
Skia committed
1
2
3
4
5
6
from django.conf.urls import url, include

from sas.views import *

urlpatterns = [
    url(r'^$', SASMainView.as_view(), name='main'),
Skia's avatar
Skia committed
7
    url(r'^moderation$', ModerationView.as_view(), name='moderation'),
Skia's avatar
Skia committed
8
    url(r'^album/(?P<album_id>[0-9]+)$', AlbumView.as_view(), name='album'),
Skia's avatar
Skia committed
9
    url(r'^album/(?P<album_id>[0-9]+)/edit$', AlbumEditView.as_view(), name='album_edit'),
Skia's avatar
Skia committed
10
    url(r'^picture/(?P<picture_id>[0-9]+)$', PictureView.as_view(), name='picture'),
Skia's avatar
Skia committed
11
    url(r'^picture/(?P<picture_id>[0-9]+)/edit$', PictureEditView.as_view(), name='picture_edit'),
Skia's avatar
Skia committed
12
    url(r'^picture/(?P<picture_id>[0-9]+)/download$', send_pict, name='download'),
Skia's avatar
Skia committed
13
14
    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'),
Skia's avatar
Skia committed
15
16
17
18
    # url(r'^album/new$', AlbumCreateView.as_view(), name='album_new'),
    # url(r'^(?P<club_id>[0-9]+)/$', ClubView.as_view(), name='club_view'),
]