Correction du template de confirmation de postulation automatique
[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)),
8e0f904f
NBV
17 url(r'^api/(?P<method>[a-z_-]+)/$', 'recrutement.api.api',
18 name='recrutement_api'),
5e23d90d
OL
19 (r'^connexion/$', 'django.contrib.auth.views.login'),
20 (r'^deconnexion/$', 'django.contrib.auth.views.logout'),
498881f4 21 (r'^dae/', include('project.dae.urls')),
b8778e64 22 (r'^recrutement/', include('recrutement.urls')),
ec517164 23 (r'^tinymce/', include('tinymce.urls')),
ae936f8d 24 (r'^', include('project.rh.urls')),
2b3edf33 25 (r'^prive/(?P<path>.*)$', 'django.views.static.serve',
8e0d552d 26 {'document_root': sett.PRIVE_MEDIA_ROOT}),
5e23d90d
OL
27)
28
29if settings.DEBUG:
30 urlpatterns += patterns('',
31 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
32 {'document_root': settings.MEDIA_ROOT}),
33 )