summaryrefslogtreecommitdiff
path: root/app/src/urls.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2020-01-27 20:37:10 -0500
committerluxagraf <sng@luxagraf.net>2020-01-27 20:37:10 -0500
commit6e8b62d8c38f6ca366f240ea45ad738ebfd62943 (patch)
treeb8c695cdd5c7f1f7729fa6750ed49c1eb2eae3e8 /app/src/urls.py
parent09abece4982e8dceabe1dd8d678639205a4a6208 (diff)
abstracted breadcrumbs into seperate template
Diffstat (limited to 'app/src/urls.py')
-rw-r--r--app/src/urls.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/app/src/urls.py b/app/src/urls.py
index 1e1488a..0ac6897 100644
--- a/app/src/urls.py
+++ b/app/src/urls.py
@@ -26,18 +26,24 @@ urlpatterns = [
name='list_books'
),
path(
- r'<slug>.txt',
+ r'<str:slug>.txt',
views.EntryDetailViewTXT.as_view(),
name="detail-txt"
),
path(
- r'<slug>',
+ r'<str:slug>',
views.EntryDetailView.as_view(),
name="detail"
),
+ re_path(
+ r'<int:page>',
+ views.SrcListView.as_view(),
+ name="list"
+ ),
path(
r'',
views.SrcListView.as_view(),
- name="list",
+ {'page':1},
+ name="list"
),
]