Requires {% load static %}
Add {% load static %} near the top of any template that
uses {% get_static_prefix %}. Without it Django does not
know the name and raises TemplateSyntaxError.
Puts STATIC_URL into the template. Reach for it only where {% static %} cannot go — building a path in JavaScript, for instance.
Template
{% load static %}
<script>const STATIC = "{% get_static_prefix %}";</script>
Result
<script>const STATIC = "/static/";</script>
Use as to hold it in a variable when you need it more than once.
