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