We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5e35c0 commit b341968Copy full SHA for b341968
django_esm/templatetags/esm.py
@@ -37,12 +37,10 @@ def _resolve_importmap_urls(raw_importmap):
37
@register.simple_tag
38
def importmap():
39
global importmap_json
40
- print(not importmap_json or settings.DEBUG)
41
if not importmap_json or settings.DEBUG:
42
with (
43
pathlib.Path(conf.get_settings().STATIC_DIR) / "importmap.json"
44
).open() as f:
45
raw_importmap = json.load(f)
46
importmap_json = _resolve_importmap_urls(raw_importmap)
47
- print(importmap_json)
48
return mark_safe(importmap_json) # nosec
0 commit comments