1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
from django.conf.urls import url
from django.views.generic.base import RedirectView
from . import views
urlpatterns = [
url(
regex=r'pubs/(?P<page>\d+)/$',
view=views.PublisherListView.as_view(),
name='list',
),
url(
regex=r'pubs/(?P<publisher>[-\w]+)/(?P<slug>[-\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<slug>[-\w]+)$',
view=views.PageView.as_view(),
name="cv"
),
url(
regex=r'^$',
view=views.BaseView.as_view(),
name="intro"
),
]
|