[#2372] Réorganisation champs Poste
[auf_rh_dae.git] / project / urls.py
1 # -*- encoding: utf-8 -*
2 from django.conf.urls.defaults import patterns, include, handler500, url
3 from django.conf import settings
4 from django.contrib import admin
5 from auf.django.emploi import settings as sett
6
7 admin.autodiscover()
8
9 handler500 # Pyflakes
10
11 urlpatterns = patterns(
12 '',
13 (r'^$', 'project.views.accueil'),
14 #url(r'^private_files/', include('private_files.urls')),
15 url(r'^captcha/', include('captcha.urls')),
16 url(r'^admin_tools/', include('admin_tools.urls')),
17
18 # système
19 url(r'^$', 'project.views.accueil', name='accueil'),
20
21 (r'^admin/', include(admin.site.urls)),
22 url(r'^api/(?P<method>[a-z_-]+)/(?P<offre_id>\d+)/$', 'recrutement.api.api',
23 name='recrutement_api'),
24 url(r'^api/(?P<method>[a-z_-]+)/$', 'recrutement.api.api',
25 name='recrutement_api'),
26 (r'^connexion/$', 'django.contrib.auth.views.login'),
27 (r'^deconnexion/$', 'django.contrib.auth.views.logout'),
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}),
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'),
37
38 # apps
39 (r'^dae/', include('project.dae.urls')),
40 (r'^recrutement/', include('recrutement.urls')),
41 (r'^', include('project.rh.urls')),
42 url(r'^qbe/', include('django_qbe.urls')),
43 )
44
45 if settings.DEBUG:
46 urlpatterns += patterns('',
47 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
48 {'document_root': settings.MEDIA_ROOT}),
49 )