greffe recrutement en PROD
[auf_rh_dae.git] / project / urls.py
CommitLineData
5e23d90d 1# -*- encoding: utf-8 -*
472316d9 2from django.conf.urls.defaults import patterns, include, handler500, handler404, url
5e23d90d
OL
3from django.conf import settings
4from django.contrib import admin
5e23d90d 5
c3f0b49f
EMS
6from auf.django import permissions
7
5e23d90d 8admin.autodiscover()
c3f0b49f 9permissions.autodiscover()
5e23d90d
OL
10
11handler500 # Pyflakes
12
13urlpatterns = patterns(
14 '',
fd5f1d55 15 (r'^$', 'project.views.index'),
5e23d90d
OL
16 url(r'^admin_tools/', include('admin_tools.urls')),
17 (r'^admin/', include(admin.site.urls)),
9372250c 18 url(r'^api/(?P<method>[a-z_-]+)/$', 'recrutement.api.api', name='recrutement_api'),
5e23d90d
OL
19 (r'^connexion/$', 'django.contrib.auth.views.login'),
20 (r'^deconnexion/$', 'django.contrib.auth.views.logout'),
498881f4 21 (r'^dae/', include('project.dae.urls')),
ae936f8d 22 (r'^', include('project.rh.urls')),
5e23d90d
OL
23)
24
25if settings.DEBUG:
26 urlpatterns += patterns('',
27 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
28 {'document_root': settings.MEDIA_ROOT}),
29 )