Initialize the databae properly
parent
946054240d
commit
8e38535710
@ -0,0 +1,6 @@
|
|||||||
|
from freeposte import db
|
||||||
|
|
||||||
|
|
||||||
|
# Initialize the database
|
||||||
|
db.create_all()
|
||||||
|
db.session.commit()
|
@ -1,10 +1,5 @@
|
|||||||
from freeposte import app, db
|
from freeposte import app, db
|
||||||
|
|
||||||
|
|
||||||
# Initialize the database if required (first launch)
|
|
||||||
db.create_all()
|
|
||||||
db.session.commit()
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app.run(debug=True)
|
app.run(debug=True)
|
||||||
|
Loading…
Reference in New Issue