DEV Community

Discussion on: A complete beginner friendly Python Flask tutorial 🐍. Learn from basic template rendering to deploying in web servers.

Collapse
 
sid86dev profile image
Siddhartha Roy
Collapse
 
daveyramudu profile image
DaveyRamudu

Thank you

Collapse
 
daveyramudu profile image
DaveyRamudu

Hi, Am struggling to insert an image on html for the web page with the use of flask.... I keep getting errors...

Collapse
 
daveyramudu profile image
DaveyRamudu

Please help

Thread Thread
 
sid86dev profile image
Siddhartha Roy • Edited

In flask, html file are served from the 'templates' folder by default and all the static file; images, css, js, etc are served from the 'static' folder. Make a static folder in a root directory and just link the images in the html correctly, it will surely work!

Check here for reference: github.com/sid86-dev/flask-tutoria...

Thread Thread
 
daveyramudu profile image
DaveyRamudu

Thanks