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