urls.py 741 Bytes
Newer Older
1
2
3
4
from django.conf.urls import url

from . import views

5
6
app_name = "photos"

7
urlpatterns = [
Joost Rijneveld's avatar
Joost Rijneveld committed
8
    url(r'^download/(?P<path>.*)', views.download, name='download'),
9
10
    url(r'^shared-download/(?P<slug>[-\w]+)/(?P<token>[a-zA-Z0-9]+)/(?P<path>.*)', views.shared_download, name='shared-download'),
    url(r'^shared-thumbnail/(?P<slug>[-\w]+)/(?P<token>[a-zA-Z0-9]+)/(?P<size_fit>\d+x\d+_[01])/(?P<path>.*)', views.shared_thumbnail, name='shared-thumbnail'),
11
    url(r'^(?P<slug>[-\w]+)/$', views.album, name='album'),
WKuipers's avatar
WKuipers committed
12
    url(r'^(?P<slug>[-\w]+)/download$', views.album_download, name='album-download'),
13
    url(r'^(?P<slug>[-\w]+)/(?P<token>[a-zA-Z0-9]+)$', views.shared_album, name='shared_album'),
Joost Rijneveld's avatar
Joost Rijneveld committed
14
    url(r'^$', views.index, name='index'),
15
]