[#2393] DAE numérisée
[auf_rh_dae.git] / project / urls.py
CommitLineData
5e23d90d
OL
1# -*- encoding: utf-8 -*
2from django.conf.urls.defaults import patterns, include, handler500, url
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)),
18 (r'^connexion/$', 'django.contrib.auth.views.login'),
19 (r'^deconnexion/$', 'django.contrib.auth.views.logout'),
498881f4 20 (r'^dae/', include('project.dae.urls')),
ae936f8d 21 (r'^', include('project.rh.urls')),
5e23d90d
OL
22)
23
24if settings.DEBUG:
25 urlpatterns += patterns('',
26 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
27 {'document_root': settings.MEDIA_ROOT}),
28 )