Flask

How To Use a PostgreSQL Database in a Flask Application — step-by-step Databases tutorial on Progressive Robot

How To Use a PostgreSQL Database in a Flask Application

In web applications, you usually need a database, which is an organized collection of data. You use a database to store and maintain persistent data that can be retrieved and manipulated efficiently. PostgreSQL, or Postgres, is a relational database management system that provides an implementation of the SQL querying language. In this tutorial, you’ll build a small book review web application that demonstrates how to use the psycopg2 library, a PostgreSQL database adapter.

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 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 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