I want to insert a string like this {% load static %}
into the first line (at the very top) of existing html files through using python (by Beautifulsoup if possible). So from this:
<!DOCTYPE html>
<html>
<body>
</body>
</html>
I want the result to be like this. So i can run the python script and insert this line into all the existing html files i have.
{% load static %}
<!DOCTYPE html>
<html>
<body>
</body>
</html>