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)