From 741cea88d882d8ac185121141ef49815835ad8a7 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Wed, 2 Dec 2015 13:03:21 -0500 Subject: updated url schemes to quiet some django 1.10 warnings --- app/resume/urls.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'app/resume') 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\d+)/$', - view=views.PublisherListView.as_view(), + r'pubs/(?P\d+)/$', + views.PublisherListView.as_view(), name='list', ), url( - regex=r'pubs/(?P[-\w]+)/(?P[-\w]+)$', - view=views.PubItemDetailView.as_view(), + r'pubs/(?P[-\w]+)/(?P[-\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[-\w]+)$', - view=views.PageView.as_view(), + r'^(?P[-\w]+)$', + views.PageView.as_view(), name="cv" ), url( - regex=r'^$', - view=views.BaseView.as_view(), + r'^$', + views.BaseView.as_view(), name="intro" ), ] -- cgit v1.2.3-70-g09d2