Hello,
I am trying to integrate VTK app into Django so in my html template I have the following:
<script src="{% static 'js/MyWebApp.js' %}" type="text/javascript"></script>
However, I get the following error messages:
The script from “http://127.0.0.1:8000/static/js/MyWebApp.js” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type.
Loading failed for the <script> with source “http://127.0.0.1:8000/static/js/MyWebApp.js
And nothing appears on my browser. Do you have any suggestion ?
Thank you very much !
Hello,
I am trying to integrate VTK app into Django so in my html template I have the following:
<script src="{% static 'js/MyWebApp.js' %}" type="text/javascript"></script>However, I get the following error messages:
The script from “http://127.0.0.1:8000/static/js/MyWebApp.js” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type.Loading failed for the <script> with source “http://127.0.0.1:8000/static/js/MyWebApp.jsAnd nothing appears on my browser. Do you have any suggestion ?
Thank you very much !