diff --git a/admin/initdb.py b/admin/initdb.py index 2c220e3b..a3f6733a 100644 --- a/admin/initdb.py +++ b/admin/initdb.py @@ -1,4 +1,4 @@ -from freeposte import db, models +from freeposte.admin import db, models from passlib import hash @@ -10,7 +10,7 @@ user = models.User( localpart="admin", domain=domain, global_admin=True, - password=hash.sha512_crypt.encrypt("admin"). + password=hash.sha512_crypt.encrypt("admin") ) db.session.add(domain) diff --git a/admin/run.py b/admin/run.py index 423ff78f..9b9768eb 100644 --- a/admin/run.py +++ b/admin/run.py @@ -2,4 +2,4 @@ from freeposte import app, db if __name__ == '__main__': - app.run() + app.run(debug=True)