refactoring pour skin/deploiement
[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
3685d5c3 5#from auf.django.skin.urls import auf_media_patterns
5e23d90d
OL
6
7admin.autodiscover()
8
9handler500 # Pyflakes
10
11urlpatterns = patterns(
12 '',
21f749ab
OL
13 ######## page d'accueil de demo ######
14 (r'^$', 'auf.django.skin.views.demo'),
15 ######################################
5e23d90d
OL
16 url(r'^admin_tools/', include('admin_tools.urls')),
17 (r'^admin/', include(admin.site.urls)),
5d680e84 18 (r'^dae/', include('project.dae.urls')),
5e23d90d
OL
19 (r'^connexion/$', 'django.contrib.auth.views.login'),
20 (r'^deconnexion/$', 'django.contrib.auth.views.logout'),
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 )
3685d5c3 29# urlpatterns += auf_media_patterns