1750: Un évaluateur doit être assignés à des offres d'emploi et non à des candidats.
[auf_rh_dae.git] / project / urls.py
1 # -*- encoding: utf-8 -*
2 from django.conf.urls.defaults import patterns, include, handler500, url
3 from django.conf import settings
4 from django.contrib import admin
5 from auf.django.emploi import settings as sett
6
7 admin.autodiscover()
8
9 handler500 # Pyflakes
10
11 urlpatterns = patterns(
12 '',
13 (r'^$', 'project.views.index'),
14 #url(r'^private_files/', include('private_files.urls')),
15 url(r'^captcha/', include('captcha.urls')),
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'),
20 (r'^dae/', include('project.dae.urls')),
21 (r'^recrutement/', include('project.recrutement.urls')),
22 url(r'^recrutement/affecter_evaluateurs_offre_emploi/$',
23 'recrutement.views.affecter_evaluateurs_offre_emploi',
24 name='affecter_evaluateurs_offre_emploi'),
25 url(r'^recrutement/envoyer_courriel_candidats/$',
26 'recrutement.views.envoyer_courriel_candidats',
27 name='envoyer_courriel_candidats'),
28 url(r'^recrutement/selectionner_template/$',
29 'recrutement.views.selectionner_template',
30 name='selectionner_template'),
31 url(r'^recrutement/pieces/$', 'recrutement.views.postuler_appel_offre',
32 name='pieces'),
33 url(r'^api/(?P<method>[a-z_-]+)/$',
34 'recrutement.api.api', name='recrutement_api'),
35 url(r'^recrutement/postuler_appel_offre/$',
36 'recrutement.views.postuler_appel_offre', name='postuler_appel_offre'),
37 (r'^tinymce/', include('tinymce.urls')),
38 (r'^', include('project.rh.urls')),
39 (r'^prive/(?P<path>.*)$', 'django.views.static.serve',
40 {'document_root': sett.PRIVE_MEDIA_ROOT}),
41 )
42
43 if settings.DEBUG:
44 urlpatterns += patterns('',
45 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
46 {'document_root': settings.MEDIA_ROOT}),
47 )