1829: Réorganiser les urls pour recrutement
[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
8e0d552d 5from auf.django.emploi import settings as sett
5e23d90d
OL
6
7admin.autodiscover()
8
9handler500 # Pyflakes
10
11urlpatterns = patterns(
12 '',
fd5f1d55 13 (r'^$', 'project.views.index'),
86caaf03 14 url(r'^captcha/', include('captcha.urls')),
5e23d90d
OL
15 url(r'^admin_tools/', include('admin_tools.urls')),
16 (r'^admin/', include(admin.site.urls)),
17 (r'^connexion/$', 'django.contrib.auth.views.login'),
18 (r'^deconnexion/$', 'django.contrib.auth.views.logout'),
498881f4 19 (r'^dae/', include('project.dae.urls')),
b8778e64 20 (r'^recrutement/', include('recrutement.urls')),
ec517164 21 (r'^tinymce/', include('tinymce.urls')),
ae936f8d 22 (r'^', include('project.rh.urls')),
2b3edf33 23 (r'^prive/(?P<path>.*)$', 'django.views.static.serve',
8e0d552d 24 {'document_root': sett.PRIVE_MEDIA_ROOT}),
5e23d90d
OL
25)
26
27if settings.DEBUG:
28 urlpatterns += patterns('',
29 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
30 {'document_root': settings.MEDIA_ROOT}),
31 )