Skip to content

Shir-AH/FlaskFirstApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To recreate the db files: run in python console from base dir: from flaskblog import create_app app = create_app() app.app_context().push() from flaskblog import db db.create_all()

to add a table column: run in python terminal: from flaskblog import create_app app = create_app() app.app_context().push() from flaskblog import db from flaskblog.models import add_column column = db.Column(...) add_column(app, 'table name', column) then change the table's Model accordingly.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published