Remove passwords

This commit is contained in:
2024-04-30 15:12:49 +01:00
parent 7b4d1ae1b0
commit 844354fa53
2 changed files with 12 additions and 12 deletions

11
app.py
View File

@@ -75,7 +75,16 @@ app.id_currency = Config.id_currency
app.id_region_delivery = Config.id_region_delivery
"""
db = SQLAlchemy(app)
try:
# db = SQLAlchemy(app)
db = SQLAlchemy()
db.init_app(app)
with app.app_context():
db.create_all()
db.engine.url = app.config.SQLALCHEMY_DATABASE_URI
app.errors = 'none'
except Exception as e:
app.errors = str(e)
oauth = OAuth(app)
oauth.register(

View File

@@ -13,20 +13,11 @@ authlib
# environment variables
# KEY_SECRET_FLASK = 'random secret key'
# # KEY_PUBLIC_FLASK = ''
# ID_AUTH0_CLIENT = ''
# ID_AUTH0_CLIENT_SECRET = ''
# DOMAIN_AUTH0=dev-nwak2066ef6h8ixn.us.auth0.com
# DOMAIN_AUTH0 = ''
# SQLALCHEMY_DATABASE_URI = 'mysql://username:password@localhost/dbname'
# Replace 'username', 'password', 'localhost', and 'dbname' with your actual database credentials
# MAIL_PASSWORD=uifv utsy yzxy hpnm
# MAIL_PASSWORD = ''
# RECAPTCHA_PUBLIC_KEY = ''
# RECAPTCHA_PRIVATE_KEY = ''
# run with:
# python -m flask run
# host network-wide with:
# python -m flask run --host=0.0.0.0
# not env var:
# auth0 recovery key: S92HY59VU5J9YDVYWCRHSKJ8