Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 810 Bytes

File metadata and controls

37 lines (29 loc) · 810 Bytes

Python Flask Authentication

This repository contains the code used in the Python Flask Authentication video uploaded on my YouTube channel.

If on python 3.10 plus the following commands may be needed to create/recreate the database file.

export FLASK_APP=app
flask shell  # this instead of python3 (python shell)
from app import db,app
db.drop_all()
db.create_all()

Installation

Use the package manager pip to install the required dependencies

Windows:
pip install -r requirements.txt 
macOS/Linux:
pip3 install -r requirements.txt

Usage

Windows:
python app.py
macOS/Linux:
python3 app.py