1561: Pièces jointes dans le formulaire du candidat.
[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 (r'^$', 'project.views.index'),
13
14 url(r'^admin_tools/', include('admin_tools.urls')),
15 (r'^admin/', include(admin.site.urls)),
16 #url(r'^private_files/', include('private_files.urls')),
17 (r'^connexion/$', 'django.contrib.auth.views.login'),
18 (r'^deconnexion/$', 'django.contrib.auth.views.logout'),
19 (r'^dae/', include('project.dae.urls')),
20 (r'^recrutement/', include('project.recrutement.urls')),
21 (r'^', include('project.rh.urls')),
22 (r'^prive/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.PRIVE_MEDIA_ROOT}),
23 )
24
25 if settings.DEBUG:
26 urlpatterns += patterns('',
27 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
28 {'document_root': settings.MEDIA_ROOT}),
29 )