summaryrefslogtreecommitdiff
path: root/app/people/urls.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2018-03-07 10:31:15 -0600
committerluxagraf <sng@luxagraf.net>2018-03-07 10:31:15 -0600
commitce9c1a25a2872979b969c64f804529d200a8c0ad (patch)
tree809ba96e13ff51c45d8d9f46e6700b1fe4f82b09 /app/people/urls.py
parent875e1a8c87ea0825653684068810987c78c94857 (diff)
added a people app as per derek sivers' suggestion
Diffstat (limited to 'app/people/urls.py')
-rw-r--r--app/people/urls.py36
1 files changed, 36 insertions, 0 deletions
diff --git a/app/people/urls.py b/app/people/urls.py
new file mode 100644
index 0000000..0ae38eb
--- /dev/null
+++ b/app/people/urls.py
@@ -0,0 +1,36 @@
+from django.urls import path, re_path
+from django.views.generic.base import RedirectView
+
+from . import views
+
+app_name = "people"
+
+urlpatterns = [
+ re_path(
+ r'^tag/(?P<slug>[-\w]+)/$',
+ views.PersonTagListView.as_view(),
+ {'page':1},
+ name='list-tag'
+ ),
+ re_path(
+ r'tag/(?P<slug>[-\w]+)/(?P<page>\d+)/$',
+ views.PersonTagListView.as_view(),
+ name='list-tag'
+ ),
+ re_path(
+ r'^(?P<page>\d+)/$',
+ views.PersonListView.as_view(),
+ name="list"
+ ),
+ path(
+ r'',
+ views.PersonListView.as_view(),
+ {'page':1},
+ name="list"
+ ),
+ path(
+ r'<str:slug>/',
+ views.PersonDetailView.as_view(),
+ name='detail',
+ ),
+]