Skip to content

Integrate VTK in Django frame work #1086

@simwes

Description

@simwes

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 !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions