summaryrefslogtreecommitdiff
path: root/app/resume/urls.py
blob: ce9c4357da58660032b243febe69f1fe3d1d9047 (plain)
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
33
34
from django.conf.urls import url
from django.views.generic.base import RedirectView

from . import views

app_name = "resume"

urlpatterns = [
    url(
        r'pubs/(?P<page>\d+)/$',
        views.PublisherListView.as_view(),
        name='list',
    ),
    url(
        r'pubs/(?P<publisher>[-\w]+)/(?P<slug>[-\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<slug>[-\w]+)$',
        views.PageView.as_view(),
        name="cv"
    ),
    url(
        r'^$',
        views.BaseView.as_view(),
        name="intro"
    ),
]