blob: cbac965ba801fca1dc6e29eebf7561de4b111255 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
from django.urls import path, re_path
from django.views.generic.base import RedirectView
from . import views
app_name = "photos"
urlpatterns = [
path(
r'daily/<int:page>',
views.DailyPhotoList.as_view(),
name="daily_photo_list"
),
path(
r'data/(<str:slug>/',
views.photo_json
),
re_path(
r'data/admin/preview/(?P<pk>\d+)/$',
views.photo_preview_json,
name="admin_image_preview"
),
re_path(
r'data/admin/tn/(?P<pk>\d+)/$',
views.thumb_preview_json,
name="admin_thumb_preview"
),
]
|