mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-29 09:52:36 +02:00
get ready for production, baby :)
This commit is contained in:
parent
8050defa8f
commit
5c44e495b7
1 changed files with 9 additions and 8 deletions
|
@ -14,6 +14,15 @@ app = Flask(__name__)
|
||||||
app.config.from_object("default_settings")
|
app.config.from_object("default_settings")
|
||||||
mail = Mail()
|
mail = Mail()
|
||||||
|
|
||||||
|
# db
|
||||||
|
db.init_app(app)
|
||||||
|
db.app = app
|
||||||
|
db.create_all()
|
||||||
|
|
||||||
|
# mail
|
||||||
|
mail.init_app(app)
|
||||||
|
|
||||||
|
|
||||||
@app.route("/")
|
@app.route("/")
|
||||||
def home():
|
def home():
|
||||||
project_form = ProjectForm()
|
project_form = ProjectForm()
|
||||||
|
@ -199,14 +208,6 @@ def delete_bill(project, bill_id):
|
||||||
|
|
||||||
|
|
||||||
def main():
|
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)
|
app.run(host="0.0.0.0", debug=True)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Reference in a new issue