diff options
Diffstat (limited to 'app/resume/urls.py')
-rw-r--r-- | app/resume/urls.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/app/resume/urls.py b/app/resume/urls.py index a359899..3e113e8 100644 --- a/app/resume/urls.py +++ b/app/resume/urls.py @@ -5,28 +5,28 @@ from . import views urlpatterns = [ url( - regex=r'pubs/(?P<page>\d+)/$', - view=views.PublisherListView.as_view(), + r'pubs/(?P<page>\d+)/$', + views.PublisherListView.as_view(), name='list', ), url( - regex=r'pubs/(?P<publisher>[-\w]+)/(?P<slug>[-\w]+)$', - view=views.PubItemDetailView.as_view(), + r'pubs/(?P<publisher>[-\w]+)/(?P<slug>[-\w]+)$', + views.PubItemDetailView.as_view(), name='detail', ), url( - regex=r'pubs/$', - view=RedirectView.as_view(url="/resume/pubs/1/", permanent=False), + r'pubs/$', + RedirectView.as_view(url="/resume/pubs/1/", permanent=False), name="live-redirect" ), url( - regex=r'^(?P<slug>[-\w]+)$', - view=views.PageView.as_view(), + r'^(?P<slug>[-\w]+)$', + views.PageView.as_view(), name="cv" ), url( - regex=r'^$', - view=views.BaseView.as_view(), + r'^$', + views.BaseView.as_view(), name="intro" ), ] |