Flask

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

How To Use an SQLite Database in a Flask Application

In web applications, you usually need a database, which is an organized collection of data. SQLite is a simple and fast open source SQL engine that can be used with Python to store and manipulate application data. SQLite works well with Python because the Python standard library provides the sqlite3 module, which you can use to interact with any SQLite database. In this tutorial, you’ll build a small web application that demonstrates how to use SQLite with Flask.

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
CHAT