1
from django.conf.urls.defaults import *
2
from django.conf import settings
3
from django.views.generic.simple import direct_to_template
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),
17
urlpatterns += patterns('',
18
(r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),