Flask

How to Use Python Virtual Environments on Ubuntu 24.04 — step-by-step Linux tutorial on Progressive Robot

How to Deploy a Flask App with Gunicorn and Nginx on Ubuntu 24.04

Flask is a lightweight Python web microframework. This guide deploys a Flask application in production on Ubuntu 24.04 LTS using Gunicorn as the WSGI server and Nginx as the reverse proxy. Tested and valid on: Ubuntu 24.04 LTS Prerequisites Ubuntu 24.04 LTS server Python 3.12 and pip installed Nginx installed Step 1 – Set Up […]

Read more
How to Set Up a Next.js 15 Application on Ubuntu 26.04 — step-by-step Linux tutorial on Progressive Robot

How to Deploy a Flask App with Gunicorn and Nginx on Ubuntu 26.04

Flask is a lightweight Python web framework ideal for microservices, APIs, and small to medium applications. Gunicorn serves Flask in production as a WSGI application server, while Nginx handles SSL, static files, and load balancing. This guide deploys Flask on Ubuntu 26.04 LTS. Tested and valid on: Ubuntu 26.04 LTS Prerequisites Ubuntu 26.04 LTS with […]

Read more
How To Use and Validate Web Forms with Flask-WTF — step-by-step Python tutorial on Progressive Robot

How To Use and Validate Web Forms with Flask-WTF

WTForms is a Python library that provides flexible web form rendering. You can use it to render text fields, text areas, password fields, radio buttons, and others. WTForms also uses a CSRF token to provide protection from CSRF attacks. In this tutorial, you’ll build a small web application that demonstrates how to render and validate web forms using Flask-WTF.

Read more
How To Use Many-to-Many Database Relationships with Flask and SQLite — step-by-step Databases tutorial on Progressive Robot

How To Use Many-to-Many Database Relationships with Flask and SQLite

In this tutorial, you’ll modify an application built using Flask and SQLite by adding a Many-to-Many relationship to it. A many-to-many database relationship is a relationship between two tables where a record in each table can reference several records in the other table. For example, in a blog, a table for posts can have a many-to-many relationship with a table for storing authors.

Read more
How To Handle Errors in a Flask Application — step-by-step Python tutorial on Progressive Robot

How To Handle Errors in a Flask Application

In this tutorial, you’ll build a small web application that demonstrates how to handle common errors one encounters when developing a web application. You’ll create custom error pages, use the Flask debugger to troubleshoot exceptions, and use logging to track events in your application.

Read more
CHAT