summaryrefslogtreecommitdiff
path: root/app/resume/urls.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2015-11-15 08:27:16 -0500
committerluxagraf <sng@luxagraf.net>2015-11-15 08:27:16 -0500
commit10402b86a75c83a02945b5528010dcefab41fc37 (patch)
tree7a6f7f22f44d15757b805b45d0649b867c3c2ccb /app/resume/urls.py
parent623974bd1b0a130be71f5db7b41c38c43b0bf613 (diff)
added resume and income apps
Diffstat (limited to 'app/resume/urls.py')
-rw-r--r--app/resume/urls.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/app/resume/urls.py b/app/resume/urls.py
new file mode 100644
index 0000000..15b2371
--- /dev/null
+++ b/app/resume/urls.py
@@ -0,0 +1,32 @@
+from django.conf.urls import url
+from django.views.generic.base import RedirectView
+
+from . import views
+
+urlpatterns = [
+ url(
+ regex=r'pubs/(?P<page>\d+)/$',
+ view=views.PublisherListView.as_view(),
+ name='list',
+ ),
+ url(
+ regex=r'pubs/(?P<publisher>[-\w]+)/(?P<slug>[-\w]+)$',
+ view=views.PubItemDetailView.as_view(),
+ name='detail',
+ ),
+ url(
+ regex=r'pubs/$',
+ view=RedirectView.as_view(url="/resume/pubs/1/", permanent=False),
+ name="live-redirect"
+ ),
+ url(
+ regex=r'^(?P<slug>[-\w]+)$',
+ view=views.PageView.as_view(),
+ name="intro"
+ ),
+ url(
+ regex=r'^$',
+ view=views.BaseView.as_view(),
+ name="cv"
+ ),
+]