summaryrefslogtreecommitdiff
path: root/bak/unused_apps/people/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'bak/unused_apps/people/urls.py')
-rw-r--r--bak/unused_apps/people/urls.py36
1 files changed, 36 insertions, 0 deletions
diff --git a/bak/unused_apps/people/urls.py b/bak/unused_apps/people/urls.py
new file mode 100644
index 0000000..0ae38eb
--- /dev/null
+++ b/bak/unused_apps/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',
+ ),
+]