Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Enable debug-mode by default

Adam Bogdałb8ec9fc230b9
diff --git a/app.json b/app.json
index ddde88b958..a1df6562fb 100644
--- a/app.json
+++ b/app.json
@@ -9,6 +9,7 @@
"BUILDPACK_URL": "https://github.com/ddollar/heroku-buildpack-multi.git",
"DJANGO_SETTINGS_MODULE": "saleor.settings",
"ALLOWED_HOSTS": "*",
+ "DEBUG": "False",
"SECRET_KEY": {
"description": "A secret key for verifying the integrity of signed cookies.",
"generator": "secret"
diff --git a/saleor/settings.py b/saleor/settings.py
index dd6b1d8f63..e6751baf7b 100644
--- a/saleor/settings.py
+++ b/saleor/settings.py
@@ -1,10 +1,11 @@
+import ast
import os.path
import dj_database_url
from django.contrib.messages import constants as messages
-DEBUG = bool(os.environ.get('DEBUG', False))
+DEBUG = ast.literal_eval(os.environ.get('DEBUG', True))
TEMPLATE_DEBUG = DEBUG
SITE_ID = 1