Rookie error...

This commit is contained in:
2021-01-24 18:32:13 +00:00
parent cfea5ecb24
commit ba19e02061

View File

@@ -23,12 +23,14 @@ BASE_DIR = os.path.dirname(os.path.dirname(__file__))
SECRET_KEY = os.environ.get('SECRET_KEY') if os.environ.get(
'SECRET_KEY') else 'gxhy(a#5mhp289_=6xx$7jh=eh$ymxg^ymc+di*0c*geiu3p_e'
def get_bool(value):
if value == '1' or value == 'true':
return True
else:
return False
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = get_bool(os.environ.get('DEBUG')) if os.environ.get('DEBUG') else True