Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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,323 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,323 Points

Hiya again! It actually worked for me though :/

The answers are just 'templates' and 'static' respectively