Skip to content

Instantly share code, notes, and snippets.

View sHongJung's full-sized avatar

sHongJung

View GitHub Profile
@sHongJung
sHongJung / GCI-Task-LoginPage.md
Created June 14, 2018 23:03 — 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) Year: 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: