oshipka/bootstrap/run.py

15 lines
305 B
Python
Raw Normal View History

2020-03-25 16:23:24 +01:00
from config import TEMPLATES_FOLDER, STATIC_FOLDER
2020-03-18 12:32:40 +01:00
from oshipka import init_db
from populate import populate_db
from webapp.app import app
2020-03-23 14:59:11 +01:00
if init_db(app):
populate_db(app)
2020-03-18 12:32:40 +01:00
2020-03-23 14:59:11 +01:00
app.template_folder = TEMPLATES_FOLDER
2020-03-25 16:23:24 +01:00
app.static_folder = STATIC_FOLDER
2020-03-18 12:32:40 +01:00
2020-03-23 14:59:11 +01:00
if __name__ == "__main__":
2020-03-18 12:32:40 +01:00
app.run(debug=True)