Python Forum

Full Version: Flask app cannot read js and css files.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello! I have made some posts about this,and I am having some styling issues.

I am using code mirror for my site and flask gives me errors like:
Error:
127.0.0.1 - - [04/Nov/2020 13:24:15] "GET /codemirror/lib/codemirror.js HTTP/1.1" 404 - 127.0.0.1 - - [04/Nov/2020 13:24:15] "GET /codemirror/lib/codemirror.css HTTP/1.1" 404 - 127.0.0.1 - - [04/Nov/2020 13:24:15] "GET /codemirror/theme/darcula.css HTTP/1.1" 404 - 127.0.0.1 - - [04/Nov/2020 13:24:15] "GET /codemirror/lib/codemirror.css HTTP/1.1" 404 - 127.0.0.1 - - [04/Nov/2020 13:24:15] "GET /codemirror/theme/darcula.css HTTP/1.1" 404 -
the folder structure is like this:

/<python files>
/templates/<html-files-of-site>
/templates/codemirror/<codemirror-stuff>

My app worked before I made the textarea into codemirror...

My code:
app-unst.py
index-unst.html
codetest-unst.html

Thanks to anybody that helps!