Python Forum
Flask app cannot read js and css files.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Flask app cannot read js and css files.
#1
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!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Flask & Files Gilush 1 1,662 Apr-07-2023, 08:23 AM
Last Post: SpongeB0B
  Flask, read H5 text value tantony 4 1,403 Oct-31-2022, 05:29 PM
Last Post: tantony
  Flask read real time print from subprocess without deadlock vofka32 0 4,024 Jun-02-2021, 09:36 AM
Last Post: vofka32
  Read owl file using python flask Gayathri 1 2,398 Nov-20-2019, 12:56 PM
Last Post: ChislaineWijdeven
  Read Save RadioButtons from Database in Python Flask Webpage Gary8877 0 7,114 Apr-11-2019, 12:33 AM
Last Post: Gary8877
Information How to read the XML files RajaPython 7 3,972 Jun-05-2018, 08:15 AM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020