Source

cciw-website / cciw / officers / urls.py

Full commit
from django.conf.urls.defaults import patterns, url

urlpatterns = patterns('cciw.officers.views',
    (r'^$', 'index'),
    (r'^applications/$', 'applications'),
    (r'^view-application/$', 'view_application'),
    (r'^update-email/(?P<username>.*)/$', 'update_email'),
    (r'^leaders/$', 'leaders_index'),
    (r'^leaders/applications/(?P<year>\d{4})/(?P<number>\d+)/$', 'manage_applications'),
    (r'^leaders/references/(?P<year>\d{4})/(?P<number>\d+)/$', 'manage_references'),
    (r'^leaders/officer-list/(?P<year>\d{4})/(?P<number>\d+)/$', 'officer_list'),
    (r'^leaders/export-officer-data/(?P<year>\d{4})/(?P<number>\d+)/$', 'export_officer_data'),
    (r'^leaders/export-camper-data/(?P<year>\d{4})/(?P<number>\d+)/$', 'export_camper_data'),
    (r'^leaders/remove-officer/(?P<year>\d{4})/(?P<number>\d+)/$', 'remove_officer'),
    (r'^leaders/add-officers/(?P<year>\d{4})/(?P<number>\d+)/$', 'add_officers'),
    (r'^leaders/update-officer/$', 'update_officer'),
    (r'^leaders/resend-email/$', 'resend_email'),
    (r'^leaders/request-reference/(?P<year>\d{4})/(?P<number>\d+)/$', 'request_reference'),
    (r'^leaders/nag-by-officer/(?P<year>\d{4})/(?P<number>\d+)/$', 'nag_by_officer'),
    (r'^leaders/reference/(?P<ref_id>\d+)/$', 'view_reference'),
    (r'^leaders/edit-reference/(?P<ref_id>\d+)/$', 'edit_reference_form_manually'),
    (r'^leaders/crbs/(?P<year>\d{4})/', 'manage_crbs'),
    (r'^leaders/mark-crb-sent/', 'mark_crb_sent'),
    (r'^leaders/undo-mark-crb-sent/', 'undo_mark_crb_sent'),
    (r'^leaders/crb-consent-problem/', 'crb_consent_problem'),
    (r'^leaders/stats/(?P<year>\d{4})/$', 'stats'),
    (r'^ref/(?P<ref_id>\d+)-(?P<prev_ref_id>\d*)-(?P<hash>.*)/$', 'create_reference_form'),
    (r'^ref/thanks/$', 'create_reference_thanks'),
    (r'^add-officer/$', 'create_officer'),
    (r'^files/(.*)$', 'officer_files'),
    url(r'^info/$', 'officer_info', name="cciw.officers.views.info"),
)