import os

basedir = os.path.abspath(os.path.dirname(__file__))

class Config:
    SECRET_KEY = os.getenv('SECRET_KEY', '')
    DEBUG = False


class DevelopmentConfig(Config):
    DEBUG = True
    SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'flask_main.db')
    SQLALCHEMY_TRACK_MODIFICATIONS = False


class TestingConfig(Config):
    DEBUG = True
    TESTING = True
    SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'flask_main.db')
    PRESERVE_CONTEXT_ON_EXCEPTION = False
    SQLALCHEMY_TRACK_MODIFICATIONS = False


class ProductionConfig(Config):
    DEBUG = False


config_by_name = dict(
    dev=DevelopmentConfig,
    test=TestingConfig,
    prod=ProductionConfig
)

key = Config.SECRET_KEY

[((3, 26, 3, 51), 'os.path.dirname', 'os.path.dirname', ({(3, 42, 3, 50): '__file__'}, {}), '(__file__)', False, 'import os\n'), ((6, 17, 6, 44), 'os.getenv', 'os.getenv', ({(6, 27, 6, 39): '"""SECRET_KEY"""', (6, 41, 6, 43): '""""""'}, {}), "('SECRET_KEY', '')", False, 'import os\n'), ((12, 45, 12, 83), 'os.path.join', 'os.path.join', ({(12, 58, 12, 65): 'basedir', (12, 67, 12, 82): '"""flask_main.db"""'}, {}), "(basedir, 'flask_main.db')", False, 'import os\n'), ((19, 45, 19, 83), 'os.path.join', 'os.path.join', ({(19, 58, 19, 65): 'basedir', (19, 67, 19, 82): '"""flask_main.db"""'}, {}), "(basedir, 'flask_main.db')", False, 'import os\n')]