diff options
| author | Alexis Metaireau <alexis@notmyidea.org> | 2011-08-21 21:21:52 +0200 |
|---|---|---|
| committer | Alexis Metaireau <alexis@notmyidea.org> | 2011-08-21 21:21:52 +0200 |
| commit | 929833cc04e81a8586892d33a9d1bbbc38592ea4 (patch) | |
| tree | f7d19d9f6eb0f936e94ff03eaff965c8db708663 /budget | |
| parent | ab44f253cd526be681bb4474562ce3a27f26699e (diff) | |
| download | ihatemoney-mirror-929833cc04e81a8586892d33a9d1bbbc38592ea4.zip ihatemoney-mirror-929833cc04e81a8586892d33a9d1bbbc38592ea4.tar.gz ihatemoney-mirror-929833cc04e81a8586892d33a9d1bbbc38592ea4.tar.bz2 | |
put back stuff in the wrong place for now
Diffstat (limited to 'budget')
| -rw-r--r-- | budget/web.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/budget/web.py b/budget/web.py index 59d7f30..39ffd1a 100644 --- a/budget/web.py +++ b/budget/web.py @@ -14,6 +14,15 @@ app = Flask(__name__) app.config.from_object("default_settings") mail = Mail() +# db +db.init_app(app) +db.app = app +db.create_all() + +# mail +mail.init_app(app) + + @app.url_defaults def add_project_id(endpoint, values): if 'project_id' in values or not hasattr(g, 'project'): @@ -243,14 +252,6 @@ def reset_bills(): def main(): - # db - db.init_app(app) - db.app = app - db.create_all() - - # mail - mail.init_app(app) - app.run(host="0.0.0.0", debug=True) if __name__ == '__main__': |
