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

6
admin/initdb.py Normal file
View File

@@ -0,0 +1,6 @@
from freeposte import db
# Initialize the database
db.create_all()
db.session.commit()