PEP8
[auf_rh_dae.git] / project / urls.py
1 # -*- encoding: utf-8 -*
2
3 from django.contrib import admin
4 from urldecorators.defaults import patterns, include, url
5 from urldecorators.defaults import handler500 # NOQA
6 from auf.django import permissions
7 from project.monkey import patch_ajax_selects
8
9 patch_ajax_selects()
10 admin.autodiscover()
11 permissions.autodiscover()
12
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+)/$',
20 'project.recrutement.api.api', name='recrutement_api'),
21 url(r'^api/(?P<method>[a-z_-]+)/$', 'project.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 url(r'^prive/(?P<filename>.*)$', 'project.views.piece'),
30
31 # apps
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']),
38
39 url(r'^qbe/', include('django_qbe.urls')),
40 )