select opt employe poste
[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
9 admin.autodiscover()
10 permissions.autodiscover()
11
12 handler500 # Pyflakes
13
14 urlpatterns = patterns(
15 '',
16 url(r'^$', 'project.views.index', name='index'),
17 url(r'^admin_tools/', include('admin_tools.urls')),
18 (r'^admin/', include(admin.site.urls)),
19 url(r'^api/(?P<method>[a-z_-]+)/(?P<offre_id>\d+)/$', 'recrutement.api.api',
20 name='recrutement_api'),
21 url(r'^api/(?P<method>[a-z_-]+)/$', 'recrutement.api.api',
22 name='recrutement_api'),
23 (r'^connexion/$', 'django.contrib.auth.views.login'),
24 (r'^deconnexion/$', 'django.contrib.auth.views.logout'),
25 #url(r'^private_files/', include('private_files.urls')),
26 url(r'^captcha/', include('captcha.urls')),
27 (r'^ajax_select/', include('ajax_select.urls')),
28 (r'^tinymce/', include('tinymce.urls')),
29 (r'^prive/(?P<path>.*)$', 'django.views.static.serve',
30 {'document_root': settings.PRIVE_MEDIA_ROOT}),
31
32 # apps
33 url(r'^dae/', include('project.dae.urls'), decorators=['django.contrib.auth.decorators.login_required']),
34 url(r'^recrutement/', include('recrutement.urls'), decorators=['django.contrib.auth.decorators.login_required']),
35 url(r'^rh/', include('project.rh.urls'), decorators=['django.contrib.auth.decorators.login_required']),
36 )
37
38 if settings.DEBUG:
39 urlpatterns += patterns('',
40 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
41 {'document_root': settings.MEDIA_ROOT}),
42 )