Practical solutions

Python Flask Howto's How-To Guides

Solve the problem. Keep building. Collection of Python Flask how-to articles

Find the answer you need

Browse practical solutions, grouped by the task you're working on.

__COUNT__ entries on this page

Flask Project StructureWe will learn, with this explanation, how to structure a big Flask application with the help of the Blueprint Approach in Flask and Python. Flask jsonifyThis guide will see what is jsonify and dumps it in the flask. Flask WebSocketsWe will learn, with this explanation, what WebSocket is and how it works between client and server. We will also learn how to make a real-time chat application with the help of the flask_socketio module in Flask. Flask send_file()We will learn, with this explanation, how to upload files to the SQLAlchemy database and then download those files from the database in Flask. Flask request.args.getWe will learn, with this explanation, how to work with the request.args.get. We will also learn the possible way to get an error when we use the request object and its attribute in Flask. Flask Secret KeyThis explanation is about what is a secret key, why we need to use it within the session, how we can generate the secret key using different ways, and how it is useful when we work with debug toolbar in Flask. Flask CORSThis explanation is about an issue that comes when we create API in the Flask app and how to fix an error when we try to access a Flask app from a different domain. Flask Request FormWe will learn, with this explanation, about two things that happen when we submit a form and how we can receive and get the form data with the help of Flask and Python.