Skip to content

Instantly share code, notes, and snippets.

@Tommy-B-Git
Tommy-B-Git / GCI-Task-LoginPage.md
Created November 23, 2016 11:53 — forked from PolBaladas/GCI-Task-LoginPage.md
Creating a Login Page with Python Flask and SQLite 3 DB.

Login page using Python, Flask and sqlite3 DB

How-to guide

(Task for GCI 2015-16)

This guide will show how to create a simple login page with Flask (a python microframework) and a sqlite3 database.

#####1. Database Schema and Models As we are creating a simple user login app we need to store 2 basic values in the database: the username and the password. In order to build the database we need to define a schema: