Answers for "python flask what is it"

5

Flask

pip install -U Flask
Posted by: Guest on April-13-2020
2

what is flask

Flask is a web framework written in Python. 
This means flask provides you with tools, libraries and technologies that allow you to build a web application.

Here a a few resources for learning Flask (I have not personally used them before):
	https://youtube.com/playlist?list=PLzMcBGfZo4-n4vJJybUVV3Un_NFS5EOgX
    https://realpython.com/tutorials/flask/
    https://opensource.com/article/18/4/flask
Posted by: Guest on April-07-2021
0

Flask

from flask import Flask, render_template

# Create a flask app
app = Flask(
  __name__,
  template_folder='templates',
  static_folder='static'
)

# Index page
@app.route('/')
def hello():
  return "Hello World!"

if __name__ == '__main__':
  # Run the Flask app
  app.run(
	host='0.0.0.0',
	debug=True,
	port=8080
  )
Posted by: Guest on October-17-2021

Python Answers by Framework

Browse Popular Code Answers by Language