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