- Flask
pip install flask
- Flask-Login
pip install flask-login
- Create your user model class:
User
. This would be a class that stores information about your User. Essentially theuser_name
,user_id
,email
, etc.
from flask import Flask | |
from flask.ext.sqlalchemy import SQLAlchemy | |
from flask.ext.wtf import Form | |
from flask.ext.babel import gettext | |
from wtforms import SelectField, TelField, TextField, FormField, Fieldlist, SubmitField | |
from wtforms.validators import Optional, Required | |
app = Flask(__name__) | |
db = SQLAlchemy(app) |
Demonstrate use of fixture
with Flask-SQLAlchemy and Flask-Testing.
February 13, 2011
Ron DuPlain <[email protected]>
Post any feedback to: [email protected]
Get this gist:
git clone git://gist.github.com/824472.git Flask-SQLAlchemy-Fixture cd Flask-SQLAlchemy-Fixture