Flask - Python microframework

16
@Andre_Mayer

Transcript of Flask - Python microframework

Page 1: Flask - Python microframework

@Andre_Mayer

Page 2: Flask - Python microframework

• Flask is a microframework for web development in Python

• Microframework refers to the simplicity and small size of the framework

Page 3: Flask - Python microframework

History

• Flask was created by Armin Ronacher.

• Flask is inspired by Sinatra (Ruby library to create web apps with minimum effort).

Page 4: Flask - Python microframework

WSGI(Web Service Gateway Interface)

Flask bridge

Jinja2Template Engine

- HTTP request and response objects- URL routing

Page 5: Flask - Python microframework

concept of extensions

• Keeps the core simple but extensible

• Plug and Play extensions

Page 6: Flask - Python microframework

HANDS ON

Page 7: Flask - Python microframework
Page 8: Flask - Python microframework
Page 9: Flask - Python microframework
Page 10: Flask - Python microframework
Page 11: Flask - Python microframework
Page 12: Flask - Python microframework

Convention over

Configuration

Page 13: Flask - Python microframework
Page 14: Flask - Python microframework
Page 15: Flask - Python microframework

Template: login.html

Page 16: Flask - Python microframework

Questions?