mirror of
https://github.com/fergalmoran/bitchmin.git
synced 2026-02-16 12:54:26 +00:00
37 lines
844 B
Python
37 lines
844 B
Python
import os
|
|
from dotenv import load_dotenv
|
|
|
|
basedir = os.path.abspath(os.path.dirname(__file__))
|
|
load_dotenv(os.path.join(basedir, '../.env'))
|
|
|
|
ISDEV = os.getenv('FLASK_ENV') == 'development'
|
|
|
|
|
|
class Config(object):
|
|
ISDEV = ISDEV
|
|
SECRET_KEY = os.getenv('SECRET_KEY') or 'you-will-never-guess'
|
|
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or \
|
|
'sqlite:///' + os.path.join(basedir, '../app.db')
|
|
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
|
LOG_TO_STDOUT = os.getenv('LOG_TO_STDOUT')
|
|
ADMINS = ['Ferg@lMoran.me']
|
|
LANGUAGES = ['en', 'ie']
|
|
|
|
|
|
class ProductionConfig(Config):
|
|
DEBUG = False
|
|
|
|
|
|
class StagingConfig(Config):
|
|
DEVELOPMENT = True
|
|
DEBUG = True
|
|
|
|
|
|
class DevelopmentConfig(Config):
|
|
DEVELOPMENT = True
|
|
DEBUG = True
|
|
|
|
|
|
class TestingConfig(Config):
|
|
TESTING = True
|