mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-22 16:02:16 +00:00
Rookie error...
This commit is contained in:
@@ -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 = os.environ.get('SECRET_KEY') if os.environ.get(
|
||||||
'SECRET_KEY') else 'gxhy(a#5mhp289_=6xx$7jh=eh$ymxg^ymc+di*0c*geiu3p_e'
|
'SECRET_KEY') else 'gxhy(a#5mhp289_=6xx$7jh=eh$ymxg^ymc+di*0c*geiu3p_e'
|
||||||
|
|
||||||
|
|
||||||
def get_bool(value):
|
def get_bool(value):
|
||||||
if value == '1' or value == 'true':
|
if value == '1' or value == 'true':
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# 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
|
DEBUG = get_bool(os.environ.get('DEBUG')) if os.environ.get('DEBUG') else True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user