diff --git a/django/contrib/staticfiles/templatetags/staticfiles.py b/django/contrib/staticfiles/templatetags/staticfiles.py index 71339ea8cd..ab922757e2 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)