1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ihatemoney_ynh.git synced 2024-09-03 19:26:15 +02:00

get ready for production, baby :)

This commit is contained in:
Alexis Metaireau 2011-08-10 00:53:15 +02:00
parent 8050defa8f
commit 5c44e495b7

View file

@ -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.route("/")
def home():
project_form = ProjectForm()
@ -199,14 +208,6 @@ def delete_bill(project, bill_id):
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__':