I have a problem:
in addWorkout.html:
{% extends "workout/base.html" %}
{% block footer %}
<script type="text/javascript" src="{% static js/addWorkout.js %}"></script>
{% endblock %}
in base.html:
{% load static %}
<!DOCTYPE html>
<html lang="en">
<body>
{% block content %}{% endblock %}
{% block footer %}{% endblock %}
</body>
</html>
This will generate an error:
Invalid block tag on line 49: 'static', expected 'endblock'. Did you forget to register or load this tag?
This error stems from the src attribute of the script tag in addWorkout.html. Apparently, django doesn't allow for the static tag to be inside of a block tag.
But how can I then import javascript from static by using the script-tag at the bottom of the body element?
EDIT:
If I change addWorkout.html to:
{% extends "workout/base.html" %}
{% load static %}
{% block footer %}
<script type="text/javascript" src="{% static js/addWorkout.js %}"></script>
{% endblock %}
I'll get the following error:

<script type="text/javascript" src="/static js/addWorkout.js"></script>link without any braces, provided you definedSTATIC_ROOTin your settings.py file