from django.conf.urls import url from django.views.generic.base import RedirectView from . import views urlpatterns = [ url( r'pubs/(?P\d+)/$', views.PublisherListView.as_view(), name='list', ), url( r'pubs/(?P[-\w]+)/(?P[-\w]+)$', views.PubItemDetailView.as_view(), name='detail', ), url( r'pubs/$', RedirectView.as_view(url="/resume/pubs/1/", permanent=False), name="live-redirect" ), url( r'^(?P[-\w]+)$', views.PageView.as_view(), name="cv" ), url( r'^$', views.BaseView.as_view(), name="intro" ), ]