add missing file
[auf_rh_dae.git] / project / urls.py
1 # -*- encoding: utf-8 -*
2 from django.conf.urls.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 (r'^$', 'project.views.index'),
17 (r'^admin/', include(admin.site.urls)),
18 url(r'^api/(?P<method>[a-z_-]+)/(?P<offre_id>\d+)/$', 'recrutement.api.api',
19 name='recrutement_api'),
20 url(r'^api/(?P<method>[a-z_-]+)/$', 'recrutement.api.api',
21 name='recrutement_api'),
22 (r'^connexion/$', 'django.contrib.auth.views.login'),
23 (r'^deconnexion/$', 'django.contrib.auth.views.logout'),
24 #url(r'^private_files/', include('private_files.urls')),
25 url(r'^captcha/', include('captcha.urls')),
26 url(r'^admin_tools/', include('admin_tools.urls')),
27 (r'^tinymce/', include('tinymce.urls')),
28 (r'^prive/(?P<path>.*)$', 'django.views.static.serve',
29 {'document_root': settings.PRIVE_MEDIA_ROOT}),
30
31 # apps
32 (r'^dae/', include('project.dae.urls')),
33 (r'^recrutement/', include('recrutement.urls')),
34 (r'^', include('project.rh.urls')),
35 )
36
37 if settings.DEBUG:
38 urlpatterns += patterns('',
39 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
40 {'document_root': settings.MEDIA_ROOT}),
41 )