Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
26 lines (16 sloc)
370 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
class Config(object): | |
SECRET_KEY = os.urandom(64).hex() | |
NGINX_PATH = '/etc/nginx' | |
CONFIG_PATH = os.path.join(NGINX_PATH, 'conf.d') | |
@staticmethod | |
def init_app(app): | |
pass | |
class DevConfig(Config): | |
DEBUG = True | |
class WorkingConfig(Config): | |
DEBUG = False | |
config = { | |
'dev': DevConfig, | |
'default': WorkingConfig | |
} |