rpi-rgb/config.py
Finn Christiansen f7ede63681
Some checks failed
CSS Linter / CSS-Lint (push) Failing after 23s
Javascript Linter / Javascript-Lint (push) Successful in 10s
Python formatting PEP8 / Pyhton-PEP8 (push) Successful in 13s
introduce blueprints and unit tests
2023-06-05 22:33:36 +02:00

30 lines
503 B
Python

import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config:
SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess string'
@staticmethod
def init_app(app):
pass
class DevelopmentConfig(Config):
DEBUG = True
class TestingConfig(Config):
TESTING = True
class ProductionConfig(Config):
pass
config = {
'development': DevelopmentConfig,
'testing': TestingConfig,
'production': ProductionConfig,
'default': DevelopmentConfig
}