c0438ade5fe3e3a20a0f35f0e0334dff2f12700c
[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 # système
14 url(r'^$', 'project.views.accueil', name='accueil'),
15
16 (r'^admin/', include(admin.site.urls)),
17 url(r'^api/(?P<method>[a-z_-]+)/$', 'recrutement.api.api',
18 name='recrutement_api'),
19 (r'^connexion/$', 'django.contrib.auth.views.login'),
20 (r'^deconnexion/$', 'django.contrib.auth.views.logout'),
21 #url(r'^private_files/', include('private_files.urls')),
22 url(r'^captcha/', include('captcha.urls')),
23 url(r'^admin_tools/', include('admin_tools.urls')),
24 (r'^tinymce/', include('tinymce.urls')),
25 (r'^prive/(?P<path>.*)$', 'django.views.static.serve',
26 {'document_root': settings.PRIVE_MEDIA_ROOT}),
27 url(r'^404$', 'project.views.erreur404', name='404'),
28 url(r'^500$', 'project.views.erreur500', name='500'),
29 url(r'^550$', 'project.views.erreur550', name='550'),
30
31 # apps
32 (r'^dae/', include('project.dae.urls')),
33 (r'^recrutement/', include('recrutement.urls')),
34 (r'^', include('project.rh.urls')),
35 )
36
37 if settings.DEBUG:
38 urlpatterns += patterns('',
39 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
40 {'document_root': settings.MEDIA_ROOT}),
41 )