summaryrefslogtreecommitdiff
path: root/app/resume/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/resume/urls.py')
-rw-r--r--app/resume/urls.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/resume/urls.py b/app/resume/urls.py
index 791f834..0d8b40a 100644
--- a/app/resume/urls.py
+++ b/app/resume/urls.py
@@ -12,10 +12,21 @@ urlpatterns = [
name='list',
),
url(
+ r'pubs/(?P<publisher>[-\w]+)/(?P<page>\d+)/$',
+ views.ByPublisherListView.as_view(),
+ name='list_by_publisher',
+ ),
+ url(
r'pubs/(?P<publisher>[-\w]+)/(?P<slug>[-\w]+)$',
views.PubItemDetailView.as_view(),
name='detail',
),
+ # redirect /slug/ to /slug/1/ for live server
+ url(
+ r'pubs/(?P<publisher>[-\w]+)/$',
+ RedirectView.as_view(url="/resume/pubs/%(publisher)s/1/", permanent=False),
+ name="live_publisher_redirect"
+ ),
url(
r'pubs/$',
RedirectView.as_view(url="/resume/pubs/1/", permanent=False),