Merge branch 'test' into dev
[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 '',
a16928b9 13 # système
c9122f1d 14 url(r'^$', 'project.views.accueil', name='accueil'),
6dde70db 15
5e23d90d 16 (r'^admin/', include(admin.site.urls)),
c2141437 17 url(r'^api/(?P<method>[a-z_-]+)/(?P<offre_id>\d+)/$', 'recrutement.api.api',
43198a9f 18 name='recrutement_api'),
8e0f904f
NBV
19 url(r'^api/(?P<method>[a-z_-]+)/$', 'recrutement.api.api',
20 name='recrutement_api'),
5e23d90d
OL
21 (r'^connexion/$', 'django.contrib.auth.views.login'),
22 (r'^deconnexion/$', 'django.contrib.auth.views.logout'),
a16928b9 23 #url(r'^private_files/', include('private_files.urls')),
24 url(r'^captcha/', include('captcha.urls')),
25 url(r'^admin_tools/', include('admin_tools.urls')),
26 (r'^tinymce/', include('tinymce.urls')),
27 (r'^prive/(?P<path>.*)$', 'django.views.static.serve',
28 {'document_root': settings.PRIVE_MEDIA_ROOT}),
3411ac33 29 url(r'^404$', 'project.views.erreur404', name='404'),
30 url(r'^500$', 'project.views.erreur500', name='500'),
31 url(r'^550$', 'project.views.erreur550', name='550'),
a16928b9 32
33 # apps
498881f4 34 (r'^dae/', include('project.dae.urls')),
b8778e64 35 (r'^recrutement/', include('recrutement.urls')),
ae936f8d 36 (r'^', include('project.rh.urls')),
5e23d90d
OL
37)
38
39if settings.DEBUG:
40 urlpatterns += patterns('',
41 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
42 {'document_root': settings.MEDIA_ROOT}),
43 )