Merge branch 'rh' into dev
[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
OL
5
6admin.autodiscover()
7
8handler500 # Pyflakes
9
10urlpatterns = patterns(
11 '',
21f749ab
OL
12 ######## page d'accueil de demo ######
13 (r'^$', 'auf.django.skin.views.demo'),
14 ######################################
5e23d90d
OL
15 url(r'^admin_tools/', include('admin_tools.urls')),
16 (r'^admin/', include(admin.site.urls)),
5d680e84 17 (r'^dae/', include('project.dae.urls')),
5e23d90d
OL
18 (r'^connexion/$', 'django.contrib.auth.views.login'),
19 (r'^deconnexion/$', 'django.contrib.auth.views.logout'),
ae936f8d 20 (r'^', include('project.rh.urls')),
5e23d90d
OL
21
22)
23
24if settings.DEBUG:
25 urlpatterns += patterns('',
26 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
27 {'document_root': settings.MEDIA_ROOT}),
28 )