Add link to WTF and SQLAlchemy
parent
556526caec
commit
871f6984a3
1 changed files with 8 additions and 2 deletions
|
|
@ -16,11 +16,15 @@ SQL provide an easy and advanced way to serialize your object to different type
|
|||
|
||||
pip install flask-sqlalchemy
|
||||
|
||||
[http://packages.python.org/Flask-SQLAlchemy/](More here about SQL Alchemy flask package)
|
||||
|
||||
## Flask-WTF
|
||||
WTF (What the Form) Provides a easy way to handle user's data submission.
|
||||
|
||||
pip install Flask-WTF
|
||||
|
||||
[http://packages.python.org/Flask-WTF/](More here about What The Form flask package)
|
||||
|
||||
# Overview
|
||||
Ok, so from now, we should have all the libs ready. Here the folder structures:
|
||||
|
||||
|
|
@ -50,7 +54,7 @@ We'll create 4 modules, a user module (manage user's registration, login, passwo
|
|||
|
||||
`shell.py` will allow you to get a console and enter commands within your flask environment. Maybe not as nice as debugging with pdb, but always usefull (when you will initialize your database)
|
||||
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python
|
||||
import os
|
||||
import readline
|
||||
from pprint import pprint
|
||||
|
|
@ -58,4 +62,6 @@ We'll create 4 modules, a user module (manage user's registration, login, passwo
|
|||
from flask import *
|
||||
from app import *
|
||||
|
||||
os.environ['PYTHONINSPECT'] = 'True'
|
||||
os.environ['PYTHONINSPECT'] = 'True'
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue