From fc569241bea388de32b38aa907bf2e527cd5039b Mon Sep 17 00:00:00 2001 From: Alexis Metaireau Date: Thu, 10 Mar 2011 17:05:34 +0000 Subject: [PATCH] create the db in any case when loading the module --- budget.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/budget.py b/budget.py index ce3086a..53f6b84 100644 --- a/budget.py +++ b/budget.py @@ -51,6 +51,7 @@ class BillOwer(db.Model): bill = db.relationship(Bill, backref=db.backref('owers', order_by=name)) +db.create_all() # define forms class BillForm(Form): @@ -126,5 +127,4 @@ def reset_bills(): if __name__ == '__main__': - db.create_all() app.run(host="0.0.0.0", debug=True)