}

Articles tagged "flask"

8 min readIntermediate

Flask REST API Complete Guide 2026 — POST, abort, gunicorn, nginx

Build a Flask REST API in 2026. Covers POST endpoints, request.get_json(), flask.abort() with JSON, gunicorn workers, and nginx reverse proxy. Flask 3.x with examples.

22 min readBeginner

Flask API POST Request: Complete Guide to Handling POST Data

Learn how to handle POST requests in Flask. This tutorial covers receiving JSON, form data, file uploads, validation, building REST APIs, and advanced Domain-Driven Design (DDD) architecture patterns.

8 min read

Flask API POST Request: Handle JSON Data [Complete Tutorial]

Learn how to handle POST requests in Flask API. Complete tutorial with JSON data handling, validation, error handling, and testing with curl and Postman.

1 min readBeginner

Flask abort with json example

In this short tutorial we show an example on how to return a json when using flask.abort: abort(jsonify(message="Message goes here"), 400). See alse an alternative using flask handlers to return a json.

1 min readBeginner

Flask-Security: NoneType has no attribute send

Check here the solution of the flask-security error AttributeError: 'NoneType' object has no attribute 'send'. You need to configure flask-mail.

2 min readIntermediate

Flask: How to Test file upload

Example on how to test file upload using flask client. Check here how to do a request using the FlaskClient to simulare a file upload. You need to put a tuple in the request payload with the data types: (, ) ex. file': (StringIO('my file contents'), 'test_file.txt'). Check here for a full example

3 min readBeginner

How to setup Flask with gunicorn and nginx with example

Follow this steps to configure flask application with gunicorn wsgi using nginx. We also extend the tutorial for load balance flask application using nginx. We will explain everything from installation to boot scripts for gunicorn.

5 min readIntermediate

Create an application with websockets and flask

In this tutorial we are going to explain how to create a webscokets application with python using flask.

5 min readIntermediate

Start a flask project from zero: Building a REST API

In this tutorial we explain how to build a REST API using flask. We try to create an environment similar to django (with management commands to migrate the database using flask).