1da4860381c76e47d31ce31ca7fd3d073005857e
[auf_rh_dae.git] / project / urls.py
1 # -*- encoding: utf-8 -*
2 from django.conf.urls.defaults import patterns, include, handler500, url
3 from django.conf import settings
4 from django.contrib import admin
5 #from auf.django.skin.urls import auf_media_patterns
6
7 admin.autodiscover()
8
9 handler500 # Pyflakes
10
11 urlpatterns = patterns(
12 '',
13 ######## page d'accueil de demo ######
14 (r'^$', 'auf.django.skin.views.demo'),
15 ######################################
16 url(r'^admin_tools/', include('admin_tools.urls')),
17 (r'^admin/', include(admin.site.urls)),
18 (r'^dae/', include('project.dae.urls')),
19 (r'^connexion/$', 'django.contrib.auth.views.login'),
20 (r'^deconnexion/$', 'django.contrib.auth.views.logout'),
21
22 )
23
24 if settings.DEBUG:
25 urlpatterns += patterns('',
26 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
27 {'document_root': settings.MEDIA_ROOT}),
28 )
29 # urlpatterns += auf_media_patterns