urls.py: sert static s'il n'est pas déjà géré par ailleurs

This commit is contained in:
Thomas NOËL 2012-07-30 12:34:20 +02:00
parent faf852afc4
commit 40dfddb1e7
1 changed files with 6 additions and 0 deletions

View File

@ -55,4 +55,10 @@ else:
{'template_name': 'logout.html'} if not settings.CAS_SERVER_URL else {}, name='logout'),
)
# handle static files directly -- useless in production
urlpatterns += patterns('',
url(r'^static/(?P<path>.*)$', 'django.views.static.serve', {
'document_root': settings.STATIC_ROOT,
}),
)