summaryrefslogtreecommitdiff
path: root/app/posts/urls/photo_essay_urls.py
blob: e69f07cb58c66057729323720270bcc564cf2006 (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
from django.urls import path, re_path

from ..views import photo_essay_views as views

app_name = "photo_essay"

urlpatterns = [
    path(
        r'<str:slug>',
        views.PhotoEssayDetailView.as_view(),
        name="detail"
    ),
    path(
        r'<int:page>/',
        views.PhotoEssayListView.as_view(),
        name="list"
    ),
    path(
        r'',
        views.PhotoEssayListView.as_view(),
        {'page':1}, 
        name="list"
    ),
]