26 lines
624 B
Python
26 lines
624 B
Python
import os
|
|
|
|
app_dir = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
os.environ['AUTHLIB_INSECURE_TRANSPORT'] = 'true'
|
|
|
|
class BaseConfig:
|
|
SECRET_KEY = os.environ.get('SECRET_KEY') or '0d6e368e-bd0c-11ea-921d-9342d47f60ca'
|
|
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
|
|
|
|
|
class DevelopementConfig(BaseConfig):
|
|
DEBUG = True
|
|
SQLALCHEMY_DATABASE_URI = 'sqlite:///db.sqlite'
|
|
AUTHLIB_INSECURE_TRANSPORT = True
|
|
|
|
|
|
class TestingConfig(BaseConfig):
|
|
DEBUG = True
|
|
SQLALCHEMY_DATABASE_URI = 'sqlite:///db.sqlite'
|
|
|
|
|
|
class ProductionConfig(BaseConfig):
|
|
DEBUG = False
|
|
SQLALCHEMY_DATABASE_URI = 'sqlite:///db.sqlite'
|