urls.py 571 Bytes
Newer Older
luxcem's avatar
luxcem committed
1 2 3 4
from django.conf.urls import patterns, include, url

from memopol_representatives import views

5 6 7
urlpatterns = patterns(
    '',
    url(r'^$', views.index, name='index'),
8 9 10 11 12 13
    url(r'^committee/(?P<mandate_abbr>\w{4})$',
        views.by_mandate, {'mandate_kind': 'committee'}, name='committee'),
    url(r'^listby/(?P<mandate_kind>\w+)/a/(?P<mandate_abbr>.+)$',
        views.by_mandate, name='listby'),
    url(r'^listby/(?P<mandate_kind>\w+)/n/(?P<mandate_name>.+)$',
        views.by_mandate, name='listby'),
14
    url(r'^view/(?P<num>\d+)$', views.view, name='view'),
luxcem's avatar
luxcem committed
15
)