summaryrefslogtreecommitdiff
path: root/app/resume/urls.py
blob: bc54d36ce31533c40385cf4df1a50e350dd69684 (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
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<path>[-\w]+)(?:/(?P<slug>[-\w]+))$',
        views.PageView.as_view(),
        name="pages"
    ),
]