kd1889 / Internet-Radio-for-Kids

0 stars 0 forks source link

Issue with displaying CSS and JS formats for the web ui #18

Closed kd1889 closed 3 years ago

kd1889 commented 3 years ago

While trying to use flask application with Bootstrap interface, the site was not loading correctly. The only things displayed were the html code for the site. The CSS and JS scripts were not shown. Using the developer tools for chrome and the python terminal, I found that the application was failing to find the CSS and JS files in question, as shown by the images

not found webpage notfound terminal

kd1889 commented 3 years ago

Tried to move the "missing" files to a static folder in the same directory as the flask application. Ran into same issue.

kd1889 commented 3 years ago

Tried to move the "missing" files to the templates folder in the same directory as the flask application. Ran into the same issue.

kd1889 commented 3 years ago

Changed the static_folder location to point to assets folder in the same directory. The path used was a global path and the issue remained. Will look into using local path to see if the issue persists.

kd1889 commented 3 years ago

Changing the static_folder to point to the assets folder using local pathing fixed the issue. image image