summaryrefslogtreecommitdiff
path: root/app/locations/walk_urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/locations/walk_urls.py')
-rw-r--r--app/locations/walk_urls.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/app/locations/walk_urls.py b/app/locations/walk_urls.py
new file mode 100644
index 0000000..4019ef6
--- /dev/null
+++ b/app/locations/walk_urls.py
@@ -0,0 +1,24 @@
+from django.urls import path, re_path
+
+from . import views
+
+app_name = "walks"
+
+urlpatterns = [
+ path(
+ r'<str:slug>',
+ views.WalkDetail.as_view(),
+ name="walk-detail"
+ ),
+ re_path(
+ r'^(?P<page>\d+)/$',
+ views.WalkList.as_view(),
+ name="walk-list"
+ ),
+ re_path(
+ r'',
+ views.WalkList.as_view(),
+ {'page':1},
+ name="walk-list"
+ ),
+]