DEV Community

Cover image for Getting started with web dev using Flask
Christopher Harrison for Microsoft Azure

Posted on

3

Getting started with web dev using Flask

This article is part of #PythonFunBites.

There's a lot of different web dev frameworks out there, and it can be confusing to figure out which to use when. One of my favorites is Flask because of the fact it mostly gets out of the way, allowing you to do almost whatever you want with it!

Flask is defined as a "micro-framework", meaning it fills the mandatory requirements of a web framework and not much else. You'll notice Flask has a great routing engine for managing different user requests, a templating engine called Jinja for rendering HTML on the server, and a couple of other core features. After that, it's really up to us as developers!

This makes Flask a great choice for creating front-ends for machine learning models you've created or other AI implementations, or scenarios where you have an API already created which needs a user interface. You'll also notice you can get up and running with just a few lines of code.

I created a video highlighting how to perform the installation and create a Hello, world application using templates.

It's also worth highlighting the fact Visual Studio Code makes for a great editor, and you can deploy all these projects to Azure if you so desire.

If you're looking for a lightweight framework on which to build your web applications, Flask can be the perfect option!

Watch for content on all things Python at Microsoft between the 16th and 20th of November. Stay tuned here at dev.to for all kinds of content ranging from IoT, to Machine Learning and much more! 🐍

Sentry blog image

How to reduce TTFB

In the past few years in the web dev world, we’ve seen a significant push towards rendering our websites on the server. Doing so is better for SEO and performs better on low-powered devices, but one thing we had to sacrifice is TTFB.

In this article, we’ll see how we can identify what makes our TTFB high so we can fix it.

Read more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay