bootstrap4 with flask

I got a few problems of GET /js/bootstrap.bundle.min.js HTTP/1.1" 404, the same goes for the bootstrap.min.css file which I referred to in my basic.html. The reason is due to the css and js folders are not stored in the static directory, Flask looks for the css and js from the static folder.

the bootstrap4 files can be downloaded from getbootstrap website.

Screenshot 2019-09-08 at 10.08.38 PMThe CSS and JS folders were previously in their own directories and not copied to the static folders, after they were in the static folders the css and js loaded as normal.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s