1764:champ genre pour courriel automatique
[auf_rh_dae.git] / project / urls.py
CommitLineData
5e23d90d
OL
1# -*- encoding: utf-8 -*
2from django.conf.urls.defaults import patterns, include, handler500, url
3from django.conf import settings
4from django.contrib import admin
8e0d552d 5from auf.django.emploi import settings as sett
5e23d90d
OL
6
7admin.autodiscover()
8
9handler500 # Pyflakes
10
11urlpatterns = patterns(
12 '',
fd5f1d55 13 (r'^$', 'project.views.index'),
362a3534 14 #url(r'^private_files/', include('private_files.urls')),
86caaf03 15 url(r'^captcha/', include('captcha.urls')),
5e23d90d
OL
16 url(r'^admin_tools/', include('admin_tools.urls')),
17 (r'^admin/', include(admin.site.urls)),
18 (r'^connexion/$', 'django.contrib.auth.views.login'),
19 (r'^deconnexion/$', 'django.contrib.auth.views.logout'),
498881f4 20 (r'^dae/', include('project.dae.urls')),
6f2d5d58 21 (r'^recrutement/', include('project.recrutement.urls')),
2b3edf33 22 url(r'^recrutement/affecter_evaluateurs_candidats/$',
23 'recrutement.views.affecter_evaluateurs_candidats',
362a3534 24 name='affecter_evaluateurs_candidats'),
c4874d66
NBV
25 url(r'^recrutement/affecter_evaluateurs_offre_emploi/$',
26 'recrutement.views.affecter_evaluateurs_offre_emploi',
27 name='affecter_evaluateurs_offre_emploi'),
d84c3a68 28 url(r'^recrutement/envoyer_courriel_candidats/$',
29 'recrutement.views.envoyer_courriel_candidats',
30 name='envoyer_courriel_candidats'),
32834000
NBV
31 url(r'^recrutement/selectionner_template/$',
32 'recrutement.views.selectionner_template',
33 name='selectionner_template'),
c4874d66
NBV
34 url(r'^recrutement/pieces/$', 'recrutement.views.postuler_appel_offre',
35 name='pieces'),
14e06ff6 36 url(r'^api/(?P<method>[a-z_-]+)/$',
f77f4b9b 37 'recrutement.api.api', name='recrutement_api'),
2b3edf33 38 url(r'^recrutement/postuler_appel_offre/$',
ec517164 39 'recrutement.views.postuler_appel_offre', name='postuler_appel_offre'),
40 (r'^tinymce/', include('tinymce.urls')),
ae936f8d 41 (r'^', include('project.rh.urls')),
2b3edf33 42 (r'^prive/(?P<path>.*)$', 'django.views.static.serve',
8e0d552d 43 {'document_root': sett.PRIVE_MEDIA_ROOT}),
5e23d90d
OL
44)
45
46if settings.DEBUG:
47 urlpatterns += patterns('',
48 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
49 {'document_root': settings.MEDIA_ROOT}),
50 )