Python Flask Basics Templates and Static Files Templates & Static Files

Julian Silvestri
Julian Silvestri
4,214 Points

Stuck on flask quiz#2

Hello

I have been stuck on this challenge for quite some time now. Rather the quiz. I find the questions and the way you are asked to answer quite strange...

Anyways... I am stuck on these questions

css, images and javascript are stored _______________/by defatult

files in flask are stored in __________________/by default After reviewing the videos sever times I noticed Kenneth saying these can be accesed using /directoryname I tried /static and others but can not seem to figure out these questions and move on

3 Answers

Ari Misha
Ari Misha
19,217 Points

Hiya Julian! By default, your flask app should have a directory named "static" and this directory contains all your JS, css and images files. But your html files should go in templates directory. Thats how flask knows how to get to your static files and templates. (:

Julian Silvestri
Julian Silvestri
4,214 Points

Hello

I have inputted static directory static files template directory I cannot find the answers.... it always just says incorrect answer. ive been stuck on this quiz forever now

Ari Misha
Ari Misha
19,217 Points

Hiya again! It actually worked for me though :/