b37464ab9231f098a4f87880b96363d5a3ae93e1
[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
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_candidats/$',
23 'recrutement.views.affecter_evaluateurs_candidats',
24 name='affecter_evaluateurs_candidats'),
25 url(r'^recrutement/pieces/$', 'recrutement.views.postuler_appel_offre', name='pieces'),
26 url(r'^recrutement/evaluer_candidat/$',
27 'recrutement.views.evaluer_candidat', name='evaluer_candidat'),
28 url(r'^recrutement/postuler_appel_offre/$',
29 'recrutement.views.postuler_appel_offre', name='postuler_appel_offre'),
30 (r'^tinymce/', include('tinymce.urls')),
31 (r'^', include('project.rh.urls')),
32 (r'^prive/(?P<path>.*)$', 'django.views.static.serve',
33 {'document_root': settings.PRIVE_MEDIA_ROOT}),
34 )
35
36 if settings.DEBUG:
37 urlpatterns += patterns('',
38 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
39 {'document_root': settings.MEDIA_ROOT}),
40 )