service
[auf_rh_dae.git] / project / urls.py
CommitLineData
5e23d90d 1# -*- encoding: utf-8 -*
974c38c1 2from urldecorators.defaults import patterns, include, handler500, handler404, url
5e23d90d
OL
3from django.conf import settings
4from django.contrib import admin
8e0d552d 5from auf.django.emploi import settings as sett
5e23d90d 6
c3f0b49f 7from auf.django import permissions
ad1eb1db 8import monkey
c3f0b49f 9
5e23d90d 10admin.autodiscover()
c3f0b49f 11permissions.autodiscover()
5e23d90d
OL
12
13handler500 # Pyflakes
14
15urlpatterns = patterns(
16 '',
3f5cbabe 17 url(r'^$', 'project.views.index', name='index'),
5e23d90d
OL
18 url(r'^admin_tools/', include('admin_tools.urls')),
19 (r'^admin/', include(admin.site.urls)),
c2141437 20 url(r'^api/(?P<method>[a-z_-]+)/(?P<offre_id>\d+)/$', 'recrutement.api.api',
43198a9f 21 name='recrutement_api'),
8e0f904f
NBV
22 url(r'^api/(?P<method>[a-z_-]+)/$', 'recrutement.api.api',
23 name='recrutement_api'),
5e23d90d
OL
24 (r'^connexion/$', 'django.contrib.auth.views.login'),
25 (r'^deconnexion/$', 'django.contrib.auth.views.logout'),
a16928b9 26 #url(r'^private_files/', include('private_files.urls')),
27 url(r'^captcha/', include('captcha.urls')),
105dd778 28 (r'^ajax_select/', include('ajax_select.urls')),
a16928b9 29 (r'^tinymce/', include('tinymce.urls')),
30 (r'^prive/(?P<path>.*)$', 'django.views.static.serve',
31 {'document_root': settings.PRIVE_MEDIA_ROOT}),
32
33 # apps
974c38c1
OL
34 url(r'^dae/', include('project.dae.urls'), decorators=['django.contrib.auth.decorators.login_required']),
35 url(r'^recrutement/', include('recrutement.urls'), decorators=['django.contrib.auth.decorators.login_required']),
36 url(r'^rh/', include('project.rh.urls'), decorators=['django.contrib.auth.decorators.login_required']),
5e23d90d 37)