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 '',
3f5f3898 13 (r'^$', 'project.views.accueil'),
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)),
c2141437 22 url(r'^api/(?P<method>[a-z_-]+)/(?P<offre_id>\d+)/$', 'recrutement.api.api',
43198a9f 23 name='recrutement_api'),
8e0f904f
NBV
24 url(r'^api/(?P<method>[a-z_-]+)/$', 'recrutement.api.api',
25 name='recrutement_api'),
5e23d90d
OL
26 (r'^connexion/$', 'django.contrib.auth.views.login'),
27 (r'^deconnexion/$', 'django.contrib.auth.views.logout'),
a16928b9 28 #url(r'^private_files/', include('private_files.urls')),
29 url(r'^captcha/', include('captcha.urls')),
30 url(r'^admin_tools/', include('admin_tools.urls')),
31 (r'^tinymce/', include('tinymce.urls')),
32 (r'^prive/(?P<path>.*)$', 'django.views.static.serve',
33 {'document_root': settings.PRIVE_MEDIA_ROOT}),
3411ac33 34 url(r'^404$', 'project.views.erreur404', name='404'),
35 url(r'^500$', 'project.views.erreur500', name='500'),
36 url(r'^550$', 'project.views.erreur550', name='550'),
a16928b9 37
38 # apps
498881f4 39 (r'^dae/', include('project.dae.urls')),
b8778e64 40 (r'^recrutement/', include('recrutement.urls')),
ae936f8d 41 (r'^', include('project.rh.urls')),
bf4f5c77 42 url(r'^qbe/', include('django_qbe.urls')),
5e23d90d
OL
43)
44
45if settings.DEBUG:
46 urlpatterns += patterns('',
47 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
48 {'document_root': settings.MEDIA_ROOT}),
49 )