~speakman/ppvalbok/trunk

« back to all changes in this revision

Viewing changes to votesys/urls.py

  • Committer: Lars Luthman
  • Date: 2009-04-22 17:00:57 UTC
  • Revision ID: lars.luthman@gmail.com-20090422170057-jyl8006nmci7epli
Moved votesys to swevote, moved all non-static data to the new app ballot_system.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
from django.conf.urls.defaults import *
2
 
from django.conf import settings
3
 
from django.views.generic.simple import direct_to_template
4
 
import views
5
 
 
6
 
urlpatterns = patterns('',
7
 
    (r'^$', views.frontpage),
8
 
    (r'^volunteer/([0-9]{5})/$', views.volunteer),
9
 
    (r'^volunteer/([0-9]{5})/station/([0-9]+)/$', views.station),
10
 
    (r'^region/([0-9a-z_]+)/$', views.region),
11
 
    (r'^region/([0-9a-z_]+)/calculate/$', views.calculate_distribution),
12
 
    (r'^region/([0-9a-z_]+)/save_calculation/$', views.save_calculation),
13
 
    (r'^user/(.+)/$', views.user),
14
 
)
15
 
 
16
 
if settings.DEBUG:
17
 
    urlpatterns += patterns('',
18
 
        (r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
19
 
    )