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 Perform Flask-SQLAlchemy Migrations Using Flask-Migrate — step-by-step Python tutorial on Progressive Robot

How to Perform Flask-SQLAlchemy Migrations Using Flask-Migrate

*The author selected Apache Software Foundation to receive a donation as part of the Write for DOnations program.* Introduction Flask is a lightweight Python web framework that provides valuable tools and features for creating web applications in the Python Language. SQLAlchemy is an SQL toolkit offering efficient and high-performing relational database access. It provides ways […]

Read more
How To Use Python-Markdown with Flask and SQLite — step-by-step Databases tutorial on Progressive Robot

How To Use Python-Markdown with Flask and SQLite

Python-Markdown is a Python library that allows you to convert Markdown text to HTML; it mostly follows the Markdown standard with a few minor differences to the standard Markdown syntax. In this tutorial, you’ll use Flask, SQLite, and Python-Markdown to build a small note-taking web application that supports formatting text using Markdown. The app will allow users to display, create, and format notes with h

Read more
How To Query Tables and Paginate Data in Flask-SQLAlchemy — step-by-step Python tutorial on Progressive Robot

How To Query Tables and Paginate Data in Flask-SQLAlchemy

In this tutorial, you’ll use Flask and Flask-SQLAlchemy to create an employee management system with a database that has a table for employees. You’ll use the Flask shell to query a table, and get table records based on a column value. You’ll retrieve records on certain conditions. You’ll order the results by a column value, and count and limit query results. Finally, you’ll use pagination to display a certain number of records per page in a web application.

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

How To Use Templates in a Flask Application

Jinja is the templating language that Flask uses to render HTML templates. Using templates allows you to separate the business logic of your application from the presentation logic. These templates provide many features that are not available in standard HTML, such as variables, if statements, for loops, filters, and template inheritance. This helps with maintenance of HTML pages, and prevents Cross-Site Scripting attacks.

Read more
How To Use Web Forms in a Flask Application — step-by-step Python tutorial on Progressive Robot

How To Use Web Forms in a Flask Application

Flask is a lightweight Python web framework that provides useful tools and features for creating web applications in the Python Language. In this tutorial, you’ll build a small web application with Flask that demonstrates how to use web forms. The application will have a page for displaying messages that are stored in a Python list, and a page for adding new messages. You’ll also use message flashing to inform users of an error when they submit invalid data.

Read more
CHAT