| Oct | NOV | Dec |
| 03 | ||
| 2020 | 2021 | 2022 |
COLLECTED BY
Collection: Save Page Now Outlinks
Full Stack Python
All topics |
Blog |
Supporter's Edition |
@fullstackpython |
Facebook |
What's new?
from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello, World!' if __name__ == '__main__': app.run()The above code shows "Hello, World!" on localhost port 5000 in a web browser when run with the
python app.py command and the Flask library installed.
The equivalent "Hello, World!" web application using the Django
web framework would involve significantly more boilerplate
code.
Flask was also written several years after Django and therefore
learned from the Python community's reactions as the framework evolved.
Jökull Sólberg wrote a great piece articulating to this effect in his
experience switching between Flask and Django.
Flask is an implementation of the web frameworks concept. Learn how these parts fit together in the web development chapter or view all topics.
__init__.py file with
blueprints for expanding
projects into many files and modules.
If you're not sure why DEBUG should be set to False in a production
deployment, be sure to read this article on
how Patreon got hacked.
Developing a Single Page App with Flask and Vue.js step-by-step walkthrough of how to set up a basic CRUD app with Vue and Flask.
The most accurate speech-to-text API. Built for Python developers.