from django.conf.urls import url from django.views.generic.base import RedirectView from . import views urlpatterns = [ url( regex=r'pubs/(?P\d+)/$', view=views.PublisherListView.as_view(), name='list', ), url( regex=r'pubs/(?P[-\w]+)/(?P[-\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[-\w]+)$', view=views.PageView.as_view(), name="intro" ), url( regex=r'^$', view=views.BaseView.as_view(), name="cv" ), ]