Tidied up code

This commit is contained in:
2022-06-19 11:17:00 +01:00
parent 2e00d503c8
commit 6d5f74bd62
4 changed files with 6 additions and 9 deletions

View File

@ -28,10 +28,10 @@ class Config(object):
MAIL_SUPPRESS_SEND = False
MAIL_ASCII_ATTACHMENTS = bool(os.getenv('MAIL_ASCII_ATTACHMENTS'))
class ProductionConfig(Config):
class Production(Config):
pass
class DevelopmentConfig(Config):
class Development(Config):
APP_HOST = '127.0.0.1'
DEBUG = True
SESSION_COOKIE_SECURE = False
@ -39,7 +39,7 @@ class DevelopmentConfig(Config):
MAIL_DEBUG = True
MAIL_SUPPRESS_SEND = False
class TestingConfig(DevelopmentConfig):
class Testing(Development):
TESTING = True
SESSION_COOKIE_SECURE = False
MAIL_SERVER = os.getenv('MAIL_SERVER')