from django.urls import path, re_path from django.views.generic.base import RedirectView from . import views app_name = "resume" urlpatterns = [ path( r'pubs///', views.ByPublisherListView.as_view(), name='list_by_publisher', ), path( r'pubs//', views.ByPublisherListView.as_view(), {'page': 1}, name='list_by_publisher', ), path( r'pubs//', views.PublisherListView.as_view(), name='list', ), path( r'pubs/', views.PublisherListView.as_view(), {'page': 1}, name="list" ), path( r'pubs//', views.PubItemDetailView.as_view(), name='detail', ), path( r'/', views.PageView.as_view(), {'path': 'work'}, name="pages" ), path( r'', views.PageView.as_view(), {'path': 'work', 'slug': 'profile'}, name="pages" ), ]