Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix generating path to placeholder

Marcin Gębala4dfa72828a2b
diff --git a/saleor/core/templatetags/placeholder.py b/saleor/core/templatetags/placeholder.py
index e53e672386..e1fba06c3a 100644
--- a/saleor/core/templatetags/placeholder.py
+++ b/saleor/core/templatetags/placeholder.py
@@ -1,10 +1,9 @@
-from django.conf import settings
from django.template import Library
+from django.contrib.staticfiles.templatetags.staticfiles import static
register = Library()
@register.simple_tag
def placeholder(size):
- return '{static_url}images/placeholder{size}x{size}.png'.format(
- static_url=settings.STATIC_URL, size=size)
+ return static('/images/placeholder{size}x{size}.png'.format(size=size))