pdc_config.py
459 Bytes
import os
root_dir = os.path.abspath(os.path.dirname(__file__))
class Config(object):
with open(os.path.join(root_dir, 'VERSION.txt')) as version_file:
VERSION = version_file.read().strip()
class ProdConfig(Config):
TESTING = False
DEBUG = False
class DevConfig(Config):
DEBUG = True
class TestConfig(Config):
TESTING = True
DEBUG = True
# ignores @login_required decorator
# LOGIN_DISABLED = True
# vim: tw=0