ergo : block titre vient de settings
[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
5e23d90d
OL
5
6admin.autodiscover()
7
8handler500 # Pyflakes
9
10urlpatterns = patterns(
11 '',
a16928b9 12 # système
13 url(r'^$', 'project.views.index', name='accueil'),
5e23d90d
OL
14 (r'^admin/', include(admin.site.urls)),
15 (r'^connexion/$', 'django.contrib.auth.views.login'),
16 (r'^deconnexion/$', 'django.contrib.auth.views.logout'),
a16928b9 17 #url(r'^private_files/', include('private_files.urls')),
18 url(r'^captcha/', include('captcha.urls')),
19 url(r'^admin_tools/', include('admin_tools.urls')),
20 (r'^tinymce/', include('tinymce.urls')),
21 (r'^prive/(?P<path>.*)$', 'django.views.static.serve',
22 {'document_root': settings.PRIVE_MEDIA_ROOT}),
23
24 # apps
498881f4 25 (r'^dae/', include('project.dae.urls')),
6f2d5d58 26 (r'^recrutement/', include('project.recrutement.urls')),
2b3edf33 27 url(r'^recrutement/affecter_evaluateurs_candidats/$',
28 'recrutement.views.affecter_evaluateurs_candidats',
362a3534 29 name='affecter_evaluateurs_candidats'),
c4874d66
NBV
30 url(r'^recrutement/affecter_evaluateurs_offre_emploi/$',
31 'recrutement.views.affecter_evaluateurs_offre_emploi',
32 name='affecter_evaluateurs_offre_emploi'),
d84c3a68 33 url(r'^recrutement/envoyer_courriel_candidats/$',
34 'recrutement.views.envoyer_courriel_candidats',
35 name='envoyer_courriel_candidats'),
32834000
NBV
36 url(r'^recrutement/selectionner_template/$',
37 'recrutement.views.selectionner_template',
38 name='selectionner_template'),
c4874d66
NBV
39 url(r'^recrutement/pieces/$', 'recrutement.views.postuler_appel_offre',
40 name='pieces'),
2b3edf33 41 url(r'^recrutement/postuler_appel_offre/$',
ec517164 42 'recrutement.views.postuler_appel_offre', name='postuler_appel_offre'),
ae936f8d 43 (r'^', include('project.rh.urls')),
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 )