diff options
| author | Alexis Metaireau <alexis@notmyidea.org> | 2011-03-10 17:05:34 +0000 |
|---|---|---|
| committer | Alexis Metaireau <alexis@notmyidea.org> | 2011-03-10 17:05:34 +0000 |
| commit | fc569241bea388de32b38aa907bf2e527cd5039b (patch) | |
| tree | 21815540c7a02b22bb6e4b82e3dc30d758c30fc9 /budget.py | |
| parent | 4947a99c3af09f149c5c7a5a5d92b5e9fb19dd44 (diff) | |
| download | ihatemoney-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.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |
