[#3302] lien poste sur organig + reorg perm reg
[auf_rh_dae.git] / project / urls.py
CommitLineData
5e23d90d 1# -*- encoding: utf-8 -*
5e23d90d 2
75f0e87b 3from django.contrib import admin
33379b93
EMS
4from urldecorators.defaults import patterns, include, url
5from urldecorators.defaults import handler500 # NOQA
c3f0b49f 6from auf.django import permissions
33379b93 7from project.monkey import patch_ajax_selects
c3f0b49f 8
33379b93 9patch_ajax_selects()
5e23d90d 10admin.autodiscover()
c3f0b49f 11permissions.autodiscover()
5e23d90d 12
5e23d90d
OL
13
14urlpatterns = patterns(
15 '',
3f5cbabe 16 url(r'^$', 'project.views.index', name='index'),
5e23d90d
OL
17 url(r'^admin_tools/', include('admin_tools.urls')),
18 (r'^admin/', include(admin.site.urls)),
33379b93
EMS
19 url(r'^api/(?P<method>[a-z_-]+)/(?P<offre_id>\d+)/$',
20 'project.recrutement.api.api', name='recrutement_api'),
21 url(r'^api/(?P<method>[a-z_-]+)/$', 'project.recrutement.api.api',
22 name='recrutement_api'),
5e23d90d
OL
23 (r'^connexion/$', 'django.contrib.auth.views.login'),
24 (r'^deconnexion/$', 'django.contrib.auth.views.logout'),
a16928b9 25 #url(r'^private_files/', include('private_files.urls')),
26 url(r'^captcha/', include('captcha.urls')),
105dd778 27 (r'^ajax_select/', include('ajax_select.urls')),
a16928b9 28 (r'^tinymce/', include('tinymce.urls')),
5be60939 29 url(r'^prive/(?P<filename>.*)$', 'project.views.piece'),
a16928b9 30
31 # apps
33379b93
EMS
32 url(r'^dae/', include('project.dae.urls'),
33 decorators=['django.contrib.auth.decorators.login_required']),
34 url(r'^recrutement/', include('project.recrutement.urls'),
35 decorators=['django.contrib.auth.decorators.login_required']),
36 url(r'^rh/', include('project.rh.urls'),
37 decorators=['django.contrib.auth.decorators.login_required']),
361d53e1
PP
38
39 url(r'^qbe/', include('django_qbe.urls')),
5e23d90d 40)