The Teclado Blog
  • Start Learning Python
  • Courses

Flask

A collection of 25 posts

All Posts • Coding Interview Problems • Flask • GUI Development • Learn Python Programming • Python Snippets • REST APIs • Understanding the Console • Web Development
Run Flask Apps with Docker Compose
Flask

Run Flask Apps with Docker Compose

Learn how to Dockerize a Flask app and then run it, PostgreSQL, Redis, Celery, and Flower with Docker Compose.

    Jose Salvatierra
    4 min read · Apr 8
Feature flags in Flask using PostHog
Web Development

Feature flags in Flask using PostHog

Learn how to use PostHog feature flags in your Flask applications to change your app's behaviour in real time.

    Jose Salvatierra
    5 min read · Mar 18
How to: HTML contact form with Flask and Resend
Flask

How to: HTML contact form with Flask and Resend

Learn how to create an HTML contact form, add it to your Flask website, and have it send you an email when someone submits it!

    Leonardo Spairani
    8 min read · Nov 14
How to customise pages and emails of Flask-Security-Too
Web Development

How to customise pages and emails of Flask-Security-Too

When you add login, signup, or other features with Flask-Security-Too, you get some unstyled plain HTML pages. Learn how to customise and style them in this article.

    Jose Salvatierra
    13 min read · Feb 20
User email confirmations with Flask-Security-Too
Flask

User email confirmations with Flask-Security-Too

Requiring user confirmation via email is traditionally not a simple thing to do. Flask extension Flask-Security-Too makes it much simpler.

    Jose Salvatierra
    4 min read · Feb 13
Query string arguments in REST APIs with Flask
Flask

Query string arguments in REST APIs with Flask

Query string arguments allow clients to send us extra data in the URL. Learn how to access query string arguments in a plain Flask route and in a Flask-Smorest API.

    Jose Salvatierra
    3 min read · Feb 6
User authentication in Flask with Flask-Security-Too
Flask

User authentication in Flask with Flask-Security-Too

Learn how to easily add user login and signup to any Flask app using the popular extension Flask-Security-Too!

    Jose Salvatierra
    5 min read · Jan 30
Create JWTs using Python for Flask or FastAPI
REST APIs

Create JWTs using Python for Flask or FastAPI

Learn how to create JWTs for authentication using either Flask or pure Python (for use in FastAPI and other frameworks).

    Jose Salvatierra
    3 min read · Nov 2
How to run tasks periodically in Render.com
Learn Python Programming

How to run tasks periodically in Render.com

Have you ever had to run some code every hour, or every day, or every week? In this article I'll show you how to set it up, to run in the cloud, very easily!

    Jose Salvatierra
    3 min read · Oct 24
Exploring Python Task Queues: Celery and rq
REST APIs

Exploring Python Task Queues: Celery and rq

An overview of how task queues work and how to set up an rq task queue and background worker using Redis. With examples.

    Jose Salvatierra
    3 min read · Oct 13
How to handle file uploads with Flask
Flask

How to handle file uploads with Flask

Uploading files is tricky! In this post we show you two ways: a simple and a less simple, depending on your needs.

    Jose Salvatierra
    9 min read · Sep 27
Build your first REST API with Flask and PostgreSQL
REST APIs

Build your first REST API with Flask and PostgreSQL

Learn to build a REST API to collect, aggregate, and serve temperature data using Flask and PostgreSQL!

    2
    Jose Salvatierra / Luka Milivojevic
    12 min read · Aug 18
How to Add API Key Authentication to a Flask app
REST APIs

How to Add API Key Authentication to a Flask app

Learn how to add API key authentication to your Flask apps using Flask-RESTful and SQLAlchemy.

    Jose Salvatierra
    4 min read · Mar 17
Build a blog platform with Flask: writing and showing posts
Flask

Build a blog platform with Flask: writing and showing posts

Part 1 of this series to guide you through building a blog using Flask and Python! In this post you'll learn how to start your Flask app, set up a database, and create posts.

    Jose Salvatierra
    9 min read · Sep 21
Flashing messages with Flask
Flask

Flashing messages with Flask

Learn how to temporarily show messages in your websites when using Flask, by using the built-in message flashing mechanism. It's flexible yet straightforward!

    Jose Salvatierra
    5 min read · Sep 19
Handling the next URL when logging in with Flask
Flask

Handling the next URL when logging in with Flask

Learn how to redirect users to their intended destination after logging in, instead of a default "profile" page every time. Simple, but can have a big impact in user experience!

    Jose Salvatierra
    5 min read · Aug 15
Protecting endpoints in Flask apps by requiring login
Flask

Protecting endpoints in Flask apps by requiring login

In this post we'll learn to prevent unauthorised logins to our Flask endpoints. We'll also look at decorators so that we can secure endpoints with a single line of code for each!

    Jose Salvatierra
    6 min read · Jul 25
How to add user logins to your Flask website
Flask

How to add user logins to your Flask website

Authentication (log in and sign up) can be tricky. In this blog post we'll guide you through adding it to a website or web app built entirely with Flask!

    Jose Salvatierra
    6 min read · Jul 11
Simple JWT Authentication with Flask-JWT
Flask

Simple JWT Authentication with Flask-JWT

Adding authentication in Flask applications can be really straightforward. Learn more about token-based authentication with Flask-JWT in this post.

    Jose Salvatierra
    5 min read · Jun 20
What is CORS and how to "fix" it
Web Development

What is CORS and how to "fix" it

CORS is a security feature of browsers, but is configured in the server side. It is used to control requests coming in from different domains. Learn more in this post!

    Li Yin
    5 min read · Jun 6
Token Authentication and Refreshing using Flask-JWT-Extended
Flask

Token Authentication and Refreshing using Flask-JWT-Extended

JWTs are great for processing authentication in a REST API. How can you stop requiring users provide their username and password every time the token expires? Learn about token-based authentication and token refresh!

    Li Yin
    4 min read · May 7
Should I learn Flask or Django?
Learn Python Programming

Should I learn Flask or Django?

Flask and Django are two behemoths of Python web development. Which one should you learn?

    Jose Salvatierra
    2 min read · Jan 2
Advanced configuration of Flask-JWT
Flask

Advanced configuration of Flask-JWT

Flask-JWT is a great library to add user authentication to our Flask apps. Sometimes we want to configure it past what it gives us out of the box. Learn how in this post!

    Jose Salvatierra
    3 min read · Dec 19
Defining User Access Levels in Flask
Flask

Defining User Access Levels in Flask

Access levels can be a tricky thing—having users, moderators, and administrators. How can you handle allowing access only to certain things to certain people?

    Jose Salvatierra
    6 min read · Nov 18
Password encryption with Flask and Python
Flask

Password encryption with Flask and Python

Why encrypt? It's normal when you start making software to not worry about many things: performance, security, or even the products you make. However, if you have a product that people are starting

    Jose Salvatierra
    2 min read · Sep 2
The Teclado Blog © 2025
Privacy Policy