Update: fdp
This commit is contained in:
parent
66fe84e3eb
commit
a701b615df
3 changed files with 11 additions and 8 deletions
|
|
@ -26,8 +26,10 @@ def create_app():
|
|||
else:
|
||||
print('ENV Variables passed : ', app.config['SQLALCHEMY_BINDS'])
|
||||
|
||||
db.init_app(app)
|
||||
with app.app_context():
|
||||
from . import routes
|
||||
db.create_all()
|
||||
# import routes
|
||||
return app
|
||||
|
||||
# db.init_app(app)
|
||||
# db.create_all()
|
||||
|
||||
# return app
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
from flask import current_app as app
|
||||
# from application import app
|
||||
# from ..run import app
|
||||
from flask import request
|
||||
from .users_model import Users, db
|
||||
from responses import send_message, send_error
|
||||
|
||||
|
||||
# Login
|
||||
|
||||
@app.route('/api/login', methods=['POST'])
|
||||
def login():
|
||||
return send_message('Login not implemented', None)
|
||||
|
|
|
|||
|
|
@ -5,4 +5,4 @@ app = create_app()
|
|||
|
||||
if __name__ == "__main__":
|
||||
PORT = os.environ.get('PORT', 33507)
|
||||
app.run(host='0.0.0.0', port=PORT)
|
||||
app.run(host='0.0.0.0', port=PORT, DEBUG=True)
|
||||
Loading…
Add table
Add a link
Reference in a new issue