urls.py 766 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from django.conf.urls import patterns, url

from . import views

urlpatterns = patterns(
    '',
    url(
        r'^representatives/?$',
        views.representatives_index,
        name='representatives_index'
    ),
    url(
        r'^representatives/view/(?P<num>\d+)$',
        views.representative_view,
        name='representative_view'
    ),
    url(
18
19
20
        r'^representatives/(?P<group_kind>\w+)/(?P<search>.+)$',
        views.representatives_by_group,
        name='representatives_by_group'
21
22
23
24
25
26
27
    ),
    url(
        r'^representatives/(?P<name>.+)$',
        views.representative_by_name,
        name='representative_view_by_name'
    ),
    url(
28
29
30
        r'^groups/(?P<kind>\w+)$',
        views.groups_by_kind,
        name='groups_by_kind'
31
32
    )
)