page perso : permission
[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
6 admin.autodiscover()
7
8 handler500 # Pyflakes
9
10 urlpatterns = patterns(
11 '',
12 # système
13 url(r'^$', 'project.views.index', name='accueil'),
14 (r'^admin/', include(admin.site.urls)),
15 (r'^connexion/$', 'django.contrib.auth.views.login'),
16 (r'^deconnexion/$', 'django.contrib.auth.views.logout'),
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 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'),
26
27 # apps
28 (r'^dae/', include('project.dae.urls')),
29 (r'^recrutement/', include('project.recrutement.urls')),
30 url(r'^recrutement/affecter_evaluateurs_candidats/$',
31 'recrutement.views.affecter_evaluateurs_candidats',
32 name='affecter_evaluateurs_candidats'),
33 url(r'^recrutement/affecter_evaluateurs_offre_emploi/$',
34 'recrutement.views.affecter_evaluateurs_offre_emploi',
35 name='affecter_evaluateurs_offre_emploi'),
36 url(r'^recrutement/envoyer_courriel_candidats/$',
37 'recrutement.views.envoyer_courriel_candidats',
38 name='envoyer_courriel_candidats'),
39 url(r'^recrutement/selectionner_template/$',
40 'recrutement.views.selectionner_template',
41 name='selectionner_template'),
42 url(r'^recrutement/pieces/$', 'recrutement.views.postuler_appel_offre',
43 name='pieces'),
44 url(r'^recrutement/postuler_appel_offre/$',
45 'recrutement.views.postuler_appel_offre', name='postuler_appel_offre'),
46 (r'^', include('project.rh.urls')),
47 )
48
49 if settings.DEBUG:
50 urlpatterns += patterns('',
51 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
52 {'document_root': settings.MEDIA_ROOT}),
53 )