test de la route login
This commit is contained in:
parent
e3d563d58b
commit
81198bb3f8
19 changed files with 99 additions and 42 deletions
|
|
@ -20,16 +20,16 @@ def create_app(flask_env='development'):
|
|||
if app.config['SQLALCHEMY_DATABASE_URI_1'] is None or app.config['SQLALCHEMY_DATABASE_URI_2'] is None:
|
||||
print('No ENV Variable for DATABASE_URL_USERS or DATABASE_URL_LOGS')
|
||||
sys.exit(1)
|
||||
else:
|
||||
print('ENV Variables passed : ', app.config['SQLALCHEMY_BINDS'])
|
||||
#else:
|
||||
# print('ENV Variables passed : ', app.config['SQLALCHEMY_BINDS'])
|
||||
|
||||
print('init_app')
|
||||
db.init_app(app)
|
||||
with app.app_context():
|
||||
print('import routes')
|
||||
#print('import routes')
|
||||
from . import routes
|
||||
app.register_blueprint(routes.bp)
|
||||
print('db.create_all')
|
||||
#print('db.create_all')
|
||||
db.create_all()
|
||||
print('db created')
|
||||
#print('db created')
|
||||
return app
|
||||
|
|
|
|||
BIN
backend/application/__pycache__/__init__.cpython-310.pyc
Normal file
BIN
backend/application/__pycache__/__init__.cpython-310.pyc
Normal file
Binary file not shown.
Binary file not shown.
BIN
backend/application/__pycache__/api_functions.cpython-310.pyc
Normal file
BIN
backend/application/__pycache__/api_functions.cpython-310.pyc
Normal file
Binary file not shown.
Binary file not shown.
BIN
backend/application/__pycache__/logs_model.cpython-310.pyc
Normal file
BIN
backend/application/__pycache__/logs_model.cpython-310.pyc
Normal file
Binary file not shown.
Binary file not shown.
BIN
backend/application/__pycache__/responses.cpython-310.pyc
Normal file
BIN
backend/application/__pycache__/responses.cpython-310.pyc
Normal file
Binary file not shown.
BIN
backend/application/__pycache__/routes.cpython-310.pyc
Normal file
BIN
backend/application/__pycache__/routes.cpython-310.pyc
Normal file
Binary file not shown.
Binary file not shown.
BIN
backend/application/__pycache__/sessionJWT.cpython-310.pyc
Normal file
BIN
backend/application/__pycache__/sessionJWT.cpython-310.pyc
Normal file
Binary file not shown.
BIN
backend/application/__pycache__/users_model.cpython-310.pyc
Normal file
BIN
backend/application/__pycache__/users_model.cpython-310.pyc
Normal file
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue