Part 1 - Introduction To Flask Framework

October 7th, 2020 1 min read

What is Flask ?

Flask is a micro framework made in python language. It is a minimalistic framework. It is a micro framework but it can build full fledged apps like other made by Django.

A simple flask server is as follows :

from flask import Flask # Importing Flask from flask

app = Flask(__name__) # Initializing Flask 

app.route("/")  # Routing Flask
def Home():
    return "Hello World"

if __name__ == '__main__': # Running Flask Application

It is super simple to use. It can get full fleged framework by using libraries below,

  1. Flask Login for authintication.
  2. Flask-SQLAlchemy for ORM like Django.
  3. Flask-WTF for forms.
  4. Flask-Mail for STMP Mails.
  5. Celery for background tasks.

That’s it, you can read other related stuff below. 😊 Thank You

You may also like: