Slide 1

Slide 1 text

To Flask or not to Flask

Slide 2

Slide 2 text

Contents • Werkzeug • Jinja2 • Glue and Stick

Slide 3

Slide 3 text

Full stack? • Never pretends, but someone tries to... • Tired on handling contexts? • In case of accident, use Django or whatever

Slide 4

Slide 4 text

Again There no convenient ways, just best- practices and recommendations Lack of out of the box solutions But you can be the first one to

Slide 5

Slide 5 text

First steps Keeping all stuff in couple of modules? Read on flask.pocoo.org about cool “Growing big” techniques Have to go deeper!

Slide 6

Slide 6 text

Deeper Application Context Request Context

Slide 7

Slide 7 text

Even more deeper Extensions like Flask-SQLAlchemy, Flask- Security, etc. are the nice source for inspiration

Slide 8

Slide 8 text

SQLAlchemy The only ORM

Slide 9

Slide 9 text

Jinja2 The only template engine

Slide 10

Slide 10 text

Python3 No way. For the God’s sake, no way! Why? Armin.

Slide 11

Slide 11 text

Flask in production Take another 5 minutes to think

Slide 12

Slide 12 text

Flask in production Think twice

Slide 13

Slide 13 text

Flask in production Think even more

Slide 14

Slide 14 text

Flask in production Fast prototyping Quick start Tones of docs and cook-books Widely spread across community

Slide 15

Slide 15 text

Flask in production Dude, you think about Django

Slide 16

Slide 16 text

Flask in production BUT

Slide 17

Slide 17 text

Flask in production Special cases are not a myth: NoSQL, Complex relations, no fucking shitty- made and poor-extensible admin site, fast and powerful template engine, your name is Armin, your name is Yehor, pain in ass

Slide 18

Slide 18 text

So give it a chance To bring all those Django-based prototypes to life Disclaimer: Speaker is not responsive for your time lost, health diseases, hodgie code and project deadlines