PJ
[auf_rh_dae.git] / project / urls.py
1 # -*- encoding: utf-8 -*
2 from urldecorators.defaults import patterns, include, handler500, handler404, url
3 from django.conf import settings
4 from django.contrib import admin
5 from auf.django.emploi import settings as sett
6
7 from auf.django import permissions
8 import monkey
9
10 admin.autodiscover()
11 permissions.autodiscover()
12
13 handler500 # Pyflakes
14
15 urlpatterns = patterns(
16 '',
17 url(r'^$', 'project.views.index', name='index'),
18 url(r'^admin_tools/', include('admin_tools.urls')),
19 (r'^admin/', include(admin.site.urls)),
20 url(r'^api/(?P<method>[a-z_-]+)/(?P<offre_id>\d+)/$', 'recrutement.api.api',
21 name='recrutement_api'),
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 (r'^ajax_select/', include('ajax_select.urls')),
29 (r'^tinymce/', include('tinymce.urls')),
30 url(r'^prive/(?P<filename>.*)$', 'project.views.piece'),
31 #(r'^prive/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.PRIVE_MEDIA_ROOT}),
32
33 # apps
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']),
37 )