-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.py
45 lines (39 loc) · 1.03 KB
/
settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# -*- coding: utf-8 -*-
"""
file: settings.py
notes: Configure Settings for application
"""
import os
class Config(object):
""" Common config options """
CACHE_DIR = os.getenv('CACHE_DIR') or './.cache'
APPNAME = 'ee-services_Docker'
SUPPORT_EMAIL = 'sergio.bruni@ingv.it'
VERSION = '1.0.0'
APPID = 'ee-services_Docker'
SECRET_KEY = os.urandom(24)
TESTING = False
LOG_SEVERITY = 'INFO'
class DevelopmentConfig(Config):
""" Dev environment config options """
FLASK_ENV='development'
DEBUG = True
PROFILE = True
LOG_SEVERITY = 'DEBUG'
class TestingConfig(Config):
""" Testing environment config options """
DEBUG = False
STAGING = True
TESTING = True
LOG_SEVERITY = 'DEBUG'
class ProductionConfig(Config):
""" Prod environment config options """
FLASK_ENV = 'production'
DEBUG = False
STAGING = False
config = {
'development': DevelopmentConfig,
'testing': TestingConfig,
'production': ProductionConfig,
'default': ProductionConfig
}