Flask-web_platform/config_example.py
2024-10-09 17:40:59 +08:00

8 lines
272 B
Python

import os
class Config:
SECRET_KEY = os.environ.get('SECRET_KEY') or 'your-secret-key'
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or \
'mysql+pymysql://root:password@mysqlip/DBname?charset=utf8mb4'
SQLALCHEMY_TRACK_MODIFICATIONS = False