aboutsummaryrefslogtreecommitdiff
path: root/budget.py
diff options
context:
space:
mode:
authorAlexis Metaireau <alexis@notmyidea.org>2011-03-10 17:05:34 +0000
committerAlexis Metaireau <alexis@notmyidea.org>2011-03-10 17:05:34 +0000
commitfc569241bea388de32b38aa907bf2e527cd5039b (patch)
tree21815540c7a02b22bb6e4b82e3dc30d758c30fc9 /budget.py
parent4947a99c3af09f149c5c7a5a5d92b5e9fb19dd44 (diff)
downloadihatemoney-mirror-fc569241bea388de32b38aa907bf2e527cd5039b.zip
ihatemoney-mirror-fc569241bea388de32b38aa907bf2e527cd5039b.tar.gz
ihatemoney-mirror-fc569241bea388de32b38aa907bf2e527cd5039b.tar.bz2
create the db in any case when loading the module
Diffstat (limited to 'budget.py')
-rw-r--r--budget.py2
1 files changed, 1 insertions, 1 deletions
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)