PROGRESS#1
Aug 11 2016- POSTED BY projecth
[models.py] import datetime from flask_bcrypt import generate_password_hash from flask_login import UserMixin from peewee import * DATABASE = SqliteDatabase(‘social.db’) class User(UserMixin, […]
Read More[models.py] import datetime from flask_bcrypt import generate_password_hash from flask_login import UserMixin from peewee import * DATABASE = SqliteDatabase(‘social.db’) class User(UserMixin, […]
Read MoreLogin Algorithm Create login form – from data if available. After submitting valid data, get requested user from the database. […]
Read MoreRegistration View [app.py] from flask import Flask, g, render_template, redirect, url_for, flash from flask_login import LoginManager import forms import models […]
Read MoreFlask-WTF Forms are not only about display (i.e. HTML forms), forms are about validation. We will be building a registration […]
Read MorePart of setting up the database is handling connecting and disconnecting from our database responsibly. To do that, we use […]
Read Morebcrypt A famous super strong library that does Cryptographic Hashing using the Blowfish Cypher which is a salt (i.e. random […]
Read MoreBuilding The Model First we’ll build the model that will handle the credential data of the registering users. [models.py] import […]
Read More