2024-08-01 10:33:45 +00:00
|
|
|
import os
|
2024-08-01 13:35:28 +00:00
|
|
|
basedir = os.path.abspath(os.path.dirname(__file__))
|
2024-08-01 10:33:45 +00:00
|
|
|
|
|
|
|
# Remove or fallbacks for prod
|
|
|
|
|
|
|
|
class Config:
|
|
|
|
SECRET_KEY = os.environ.get('FLASK_SECRET_KEY') or 'flasksk'
|
2024-08-01 13:35:28 +00:00
|
|
|
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'zapp.db')
|
2024-08-02 00:48:00 +00:00
|
|
|
#SQLALCHEMY_DATABASE_URI = 'mysql://flasku:' + os.environ.get('MYSQL_PASSWORD') + '@db:3306/flask'
|
2024-08-01 13:35:28 +00:00
|
|
|
|
2024-08-01 10:33:45 +00:00
|
|
|
|