blog/run.py

17 lines
360 B
Python
Raw Normal View History

2020-07-08 14:36:13 +02:00
from config import TEMPLATES_FOLDER, STATIC_FOLDER
from oshipka.persistance import populate_static, init_db
from populate import populate_db
from webapp.app import app
if init_db(app):
populate_static(app)
populate_db(app)
app.template_folder = TEMPLATES_FOLDER
app.static_folder = STATIC_FOLDER
2020-07-13 11:54:16 +02:00
2020-07-08 14:36:13 +02:00
if __name__ == "__main__":
app.run(debug=True)