DEV Community

Cover image for A complete beginner friendly Python Flask tutorial 🐍. Learn from basic template rendering to deploying in web servers.

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

Siddhartha Roy on September 03, 2021

A complete Flask tutorial for beginners I made this tutorial to help and teach my students to make awesome dynamic websites...
Collapse
 
behainguyen profile image
Be Hai Nguyen

Hi, great article. Thank you.

Collapse
 
daveyramudu profile image
DaveyRamudu

How can I use flask to add two numbers and display the results?

Collapse
 
sid86dev profile image
Siddhartha Roy
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

Collapse
 
daveyramudu profile image
DaveyRamudu

Thank you

Collapse
 
michaelcurrin profile image
Michael Currin

Thanks

Two improvements to fix

Fask Docs

Url -> URL

Collapse
 
sid86dev profile image
Siddhartha Roy

seems a typo*, Thanks

Collapse
 
sid86dev profile image
Siddhartha Roy