Accès à page perso via actions en haut à droite
[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}),
3411ac33 23 url(r'^404$', 'project.views.erreur404', name='404'),
24 url(r'^500$', 'project.views.erreur500', name='500'),
25 url(r'^550$', 'project.views.erreur550', name='550'),
a16928b9 26
27 # apps
498881f4 28 (r'^dae/', include('project.dae.urls')),
6f2d5d58 29 (r'^recrutement/', include('project.recrutement.urls')),
2b3edf33 30 url(r'^recrutement/affecter_evaluateurs_candidats/$',
31 'recrutement.views.affecter_evaluateurs_candidats',
362a3534 32 name='affecter_evaluateurs_candidats'),
c4874d66
NBV
33 url(r'^recrutement/affecter_evaluateurs_offre_emploi/$',
34 'recrutement.views.affecter_evaluateurs_offre_emploi',
35 name='affecter_evaluateurs_offre_emploi'),
d84c3a68 36 url(r'^recrutement/envoyer_courriel_candidats/$',
37 'recrutement.views.envoyer_courriel_candidats',
38 name='envoyer_courriel_candidats'),
32834000
NBV
39 url(r'^recrutement/selectionner_template/$',
40 'recrutement.views.selectionner_template',
41 name='selectionner_template'),
c4874d66
NBV
42 url(r'^recrutement/pieces/$', 'recrutement.views.postuler_appel_offre',
43 name='pieces'),
2b3edf33 44 url(r'^recrutement/postuler_appel_offre/$',
ec517164 45 'recrutement.views.postuler_appel_offre', name='postuler_appel_offre'),
ae936f8d 46 (r'^', include('project.rh.urls')),
5e23d90d
OL
47)
48
49if settings.DEBUG:
50 urlpatterns += patterns('',
51 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
52 {'document_root': settings.MEDIA_ROOT}),
53 )