Skip to content
Snippets Groups Projects
Select Git revision
  • f1ce2f97a6d8d938fbfe800ffda6820ac0af0850
  • test default protected
  • master protected
  • original
  • pirati-backup protected
  • beta-2
  • beta-1
  • v3.1.4
  • v3.1.3
  • v3.1.2
  • v3.1.1
  • v3.1.0
  • v3.0.16
  • v3.0.15
  • v3.0.14
  • v3.0.13
  • v3.0.12
  • v3.0.11
  • v3.0.10
  • v3.0.9
  • v3.0.8
  • v3.0.7
  • v3.0.6
  • v3.0.5
  • v3.0.4
25 results

urls.py

Blame
  • urls.py 1.02 KiB
    # -*- coding: utf-8 -*-
    from django.conf.urls.defaults import *
    
    from django.conf import settings
    
    from views import *
    
    urlpatterns = None
    
    urlpatterns = patterns('',
      (r'^$', home),
      (r'^testcookie$', test_cookie),
      (r'^testcookie_2$', test_cookie_2),
      (r'^nocookies$', nocookies),
      (r'^stats/', include('helios.stats_urls')),
      (r'^socialbuttons$', socialbuttons),
    
      # election shortcut by shortname
      (r'^e/(?P<election_short_name>[^/]+)$', election_shortcut),
    
      # vote shortcut
      (r'^v/(?P<vote_tinyhash>[^/]+)$', castvote_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')),
      
    )