/
urls.py
32 lines (21 loc) · 840 Bytes
/
urls.py
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
# -*- coding: utf-8 -*-
from django.conf.urls.defaults import *
from django.conf import settings
from views import *
urlpatterns = None
urlpatterns = patterns('',
(r'^$', home),
(r'^stats$', stats),
(r'^socialbuttons$', socialbuttons),
# election shortcut by shortname
(r'^e/(?P<election_short_name>[^/]+)$', election_shortcut),
# trustee login
(r'^t/(?P<election_short_name>[^/]+)/(?P<trustee_email>[^/]+)/(?P<trustee_secret>[^/]+)$', trustee_login),
# election
(r'^elections/params$', election_params),
(r'^elections/verifier$', election_verifier),
(r'^elections/single_ballot_verifier$', election_single_ballot_verifier),
(r'^elections/new$', election_new),
(r'^elections/administered$', elections_administered),
(r'^elections/(?P<election_uuid>[^/]+)', include('helios.election_urls')),
)