DEV Community

Cover image for What is Flask(Python)? - Web Development
Raghav Mrituanjaya
Raghav Mrituanjaya

Posted on β€’ Edited on β€’ Originally published at thegogamicblog.xyz

2 2

What is Flask(Python)? - Web Development

Hi, guys so in this post we will be seeing what is flask? why flask? flask vs Django and a lot so let's get started

What is Flask?

Flask is a web framework. This means flask provides you with tools, libraries, and technologies that allow you to build a web application. This web application can be some web pages, a blog, a wiki, or go as big as a web-based calendar application or a commercial website. Flask is Micro-framework

What is a micro-framework?

A Micro Framework is normally a framework with little to no dependencies on external libraries.

Why Flask?πŸ€”

As mentioned earlier, Flask is an easy to learn and simple framework you can easily build websites like e-commerce very easily without a lot of codes.

Flask vs Django βš”

Here we go with another python framework vs flask. Django is a full-stack web framework, whereas Flask is a micro and lightweight web framework. The features provided by Django help developers build large and complex web applications. On the other hand, Flask accelerates the development of simple web applications by providing the required functionality.

Starter Flask App

from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello, World!'
if __name__ == '__main__':
app.run()
view raw flask.py hosted with ❀ by GitHub

Conclusion

  • Flask is a good option for starters and I would personally recommend Django if you are building an e-commerce site.

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

πŸ‘‹ Kindness is contagious

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

Okay