From 6679eab987ec98b5006435424955936b6d256bb7 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 3 Jan 2014 16:58:36 +0100 Subject: Manage static file on debug --- ishtar_common/urls.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ishtar_common/urls.py') diff --git a/ishtar_common/urls.py b/ishtar_common/urls.py index 63c0d55f8..6afd8073d 100644 --- a/ishtar_common/urls.py +++ b/ishtar_common/urls.py @@ -17,7 +17,9 @@ # See the file COPYING for details. +from django.conf import settings from django.conf.urls.defaults import * +from django.conf.urls.static import static from menus import menu @@ -84,3 +86,6 @@ urlpatterns += patterns('ishtar_common.views', url(r'(?P' + actions + r')/$', 'action', name='action'), ) + +if settings.DEBUG: + urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) -- cgit v1.2.3