How to use Javascript Modules

Loading module from “” was blocked because of a disallowed MIME type (“text/html”).

Windows registry is causing this error and there are currently no workarounds.

reg query HKCR.js /v “Content Type”

The above confirms it. I think saying “windows problem therefore we can’t fix it just stop developing on windows” is not a “solution”.

Actually, this problem is typically caused because of a 404 error. The browser is trying to load the JavaScript, but for whatever reason it can’t find the file. So what happens is that Django returns a 404 page - which is standard html and not JavaScript.

You can verify this by trying that URL directly in the address bar. If it returns the javascript file to your browser, then the problem is somewhere else. However, if you get a 404 trying to retrieve that file, then you’ve got a configuration error somewhere.