I'm not sure why the date won't display in this django template, using javascript and html: I've also found this helpful: how to display a javascript var in html body
But following that, still can't get it to work. Currently I have:
{% extends 'chattr.html' %}
<section class="">
hello
</section>
<script>
let d = new Date();
document.getElementById("date0").innerHTML = d;
n = new Date();
y = n.getFullYear();
m = n.getMonth() + 1;
d = n.getDate();
document.getElementById("date").innerHTML = m + "/" + d + "/" + y;
</script>
<p id="date"></p>
{% block chatStream %}
<b>smallest_steps:</b> <br>
Hello! Please send me a message:) <span id="date0"></span> <br>
<p id="date"></p>
{% endblock %}
and chattr.html
<h1>ss</h1>
{% block title %}{% endblock %}
{% block chatStream %} {% endblock %}
Thanks so much