Saturday, May 2, 2020

Getting started with Flask

Getting started with Flask

Web Application Framework or simply Web Framework represents a collection of libraries and modules that enables a web application developer to write applications

Flask is a web application framework written in Python. It is developed by Armin Ronacher.


 Flask is based on the Werkzeug WSGI toolkit and Jinja2 template engine.

Installing Flask in python

pip install flask

First project in flask

from flask import Flask
#it is double underscore
app = Flask(__name__)
@app.route('/')
 def hello_world():
          return 'Hello World’
#it is double underscore
if __name__ == '__main__':
           app.run()


The image is from Google

PS: you need to know python
Support:

No comments:

Post a Comment