python flask

Solutions on MaxInterview for python flask by the best coders in the world

showing results for - "python flask"
Nico
12 Apr 2019
1pip install -U Flask
2
Hippolyte
21 Sep 2016
1from flask import Flask
2app = Flask(__name__)
3
4@app.route('/')
5def hello_world():
6    return 'Hello, World!'
7
Johanna
17 Jan 2021
1from flask import Flask
2app = Flask('app')
3
4@app.route('/')
5def hello_world():
6  return 'Hello, World!'
7
8app.run(host='0.0.0.0', port=8080)
Eden
19 Jan 2018
1flash(u'Invalid password provided', 'error')
2
Melvyn
16 Aug 2016
1Flask is a Python framework for web development.
2
3When creating simple static sites, there is no need to use backend frameworks.
4However, when creating complex and large sites that are backend heavy,
5you will want to use a backend framework. Currently, the 2 Python frameworks
6that are the most useful to learn are Flask and Django.
7
8Flask:
9Micro and light-weight framework that is easy to learn.
10
11Django:
12Complex, full-stack framework that is extremely powerful.
13
14For smaller projects, Flask will work. However, for large ones, you might
15consider learning Django. I suggest you learn Flask first and then Django.
16
17Additionally, considering learning Node JS because even though it is in
18Javascript, it is extremely popular.
Simona
26 Sep 2018
1{% set fruit = 'apple' %}
2{% set name, age = 'Tom', 20 %} {# tuple unpacking works inside templates too #}
3
similar questions
queries leading to this page
python flask