From f96dd05542885d9839d4c79639164551e1f01563 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Sat, 23 Feb 2013 14:35:52 +0100 Subject: [PATCH] [1.5.X] Fixed #19850 -- Use configured staticfiles storage to find the URL of a static file in the admin. --- django/contrib/staticfiles/templatetags/staticfiles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/staticfiles/templatetags/staticfiles.py b/django/contrib/staticfiles/templatetags/staticfiles.py index 71339ea8cd4..ab922757e20 100644 --- a/django/contrib/staticfiles/templatetags/staticfiles.py +++ b/django/contrib/staticfiles/templatetags/staticfiles.py @@ -34,4 +34,4 @@ def do_static(parser, token): def static(path): - return StaticNode.handle_simple(path) + return staticfiles_storage.url(path)