diff options
author | luxagraf <sng@luxagraf.net> | 2015-11-15 08:27:16 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2015-11-15 08:27:16 -0500 |
commit | 10402b86a75c83a02945b5528010dcefab41fc37 (patch) | |
tree | 7a6f7f22f44d15757b805b45d0649b867c3c2ccb /app/resume/urls.py | |
parent | 623974bd1b0a130be71f5db7b41c38c43b0bf613 (diff) |
added resume and income apps
Diffstat (limited to 'app/resume/urls.py')
-rw-r--r-- | app/resume/urls.py | 32 |
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" + ), +] |