API: Permettre la postulation a partir du site institutionnel
[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.index'),
14 url(r'^captcha/', include('captcha.urls')),
15 url(r'^admin_tools/', include('admin_tools.urls')),
16 (r'^admin/', include(admin.site.urls)),
17 url(r'^api/(?P<method>[a-z_-]+)/(?P<offre_id>\d+)$', 'recrutement.api.api',
18 name='recrutement_api'),
19 url(r'^api/(?P<method>[a-z_-]+)/$', 'recrutement.api.api',
20 name='recrutement_api'),
21 (r'^connexion/$', 'django.contrib.auth.views.login'),
22 (r'^deconnexion/$', 'django.contrib.auth.views.logout'),
23 (r'^dae/', include('project.dae.urls')),
24 (r'^recrutement/', include('recrutement.urls')),
25 (r'^tinymce/', include('tinymce.urls')),
26 (r'^', include('project.rh.urls')),
27 (r'^prive/(?P<path>.*)$', 'django.views.static.serve',
28 {'document_root': sett.PRIVE_MEDIA_ROOT}),
29 )
30
31 if settings.DEBUG:
32 urlpatterns += patterns('',
33 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
34 {'document_root': settings.MEDIA_ROOT}),
35 )