Remove passwords
This commit is contained in:
11
app.py
11
app.py
@@ -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(
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user