merge dev
[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'^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_-]+)/$', 'recrutement.api.api',
23 name='recrutement_api'),
24 (r'^connexion/$', 'django.contrib.auth.views.login'),
25 (r'^deconnexion/$', 'django.contrib.auth.views.logout'),
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')),
30 (r'^prive/(?P<path>.*)$', 'django.views.static.serve',
31 {'document_root': settings.PRIVE_MEDIA_ROOT}),
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'),
35
36 # apps
37 (r'^dae/', include('project.dae.urls')),
38 (r'^recrutement/', include('recrutement.urls')),
39 (r'^', include('project.rh.urls')),
40 url(r'^qbe/', include('django_qbe.urls')),
41 )
42
43 if settings.DEBUG:
44 urlpatterns += patterns('',
45 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
46 {'document_root': settings.MEDIA_ROOT}),
47 )