summaryrefslogtreecommitdiff
path: root/app/photos/urls.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2019-01-03 14:30:59 -0600
committerluxagraf <sng@luxagraf.net>2019-01-03 14:30:59 -0600
commit7946407380077ca56bbeccc20405ac0fa43595bb (patch)
treee3fa64674ed7d591ff464b15f608beeebd36aeaa /app/photos/urls.py
parentd635df078e61448ed572b7d10558a96e001937fe (diff)
added a daily photo section
Diffstat (limited to 'app/photos/urls.py')
-rw-r--r--app/photos/urls.py47
1 files changed, 6 insertions, 41 deletions
diff --git a/app/photos/urls.py b/app/photos/urls.py
index 8c51d60..cbac965 100644
--- a/app/photos/urls.py
+++ b/app/photos/urls.py
@@ -7,7 +7,12 @@ app_name = "photos"
urlpatterns = [
path(
- r'data/(<str:slug>/$',
+ r'daily/<int:page>',
+ views.DailyPhotoList.as_view(),
+ name="daily_photo_list"
+ ),
+ path(
+ r'data/(<str:slug>/',
views.photo_json
),
re_path(
@@ -20,44 +25,4 @@ urlpatterns = [
views.thumb_preview_json,
name="admin_thumb_preview"
),
- re_path(
- r'galleries/private/(?P<slug>[-\w]+)$',
- views.PrivateGallery.as_view(),
- name="private"
- ),
- re_path(
- r'galleries/private/(?P<page>\d+)/$',
- views.PrivateGalleryList.as_view(),
- name="private_list"
- ),
- re_path(
- r'galleries/private/$',
- RedirectView.as_view(url="/photos/galleries/private/1/", permanent=False)
- ),
- re_path(
- r'galleries/(?P<slug>[-\w]+)$',
- views.Gallery.as_view(),
- name="private"
- ),
- re_path(
- r'galleries/(?P<page>\d+)/$',
- views.GalleryList.as_view(),
- name="private_list"
- ),
- re_path(
- r'galleries/$',
- RedirectView.as_view(url="/photos/galleries/1/", permanent=False)
- ),
- re_path(
- r'(?P<page>\d+)/$',
- views.gallery_list,
- ),
- re_path(
- r'(?P<slug>[-\w]+)/$',
- RedirectView.as_view(url="/photos/%(slug)s/1/", permanent=False)
- ),
- re_path(
- r'',
- RedirectView.as_view(url="/photos/1/", permanent=False)
- ),
]