Initialize the databae properly

This commit is contained in:
Pierre Jaury
2016-02-21 16:47:30 +01:00
parent 946054240d
commit 8e38535710
3 changed files with 14 additions and 9 deletions

View File

@@ -1,10 +1,5 @@
from freeposte import app, db
# Initialize the database if required (first launch)
db.create_all()
db.session.commit()
if __name__ == '__main__':
app.run(debug=True)