Fixed debug setting and minor cleanup
This commit is contained in:
@@ -26,7 +26,7 @@ load_dotenv()
|
||||
SECRET_KEY = os.environ.get('SECRET_KEY')
|
||||
|
||||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = os.environ.get("DEBUG", default=False)
|
||||
DEBUG = (os.environ.get("DEBUG", default=False).lower() == 'true')
|
||||
|
||||
ALLOWED_HOSTS = os.environ.get('ALLOWED_HOSTS').split(' ')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user