Skip to content

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

Get rid of deprecated variables

Adam Bogdała9ee321ee304
diff --git a/saleor/settings.py b/saleor/settings.py
index f24b850e3c..dd47106cbe 100644
--- a/saleor/settings.py
+++ b/saleor/settings.py
@@ -6,7 +6,6 @@ from django.contrib.messages import constants as messages
DEBUG = ast.literal_eval(os.environ.get('DEBUG', 'True'))
-TEMPLATE_DEBUG = DEBUG
SITE_ID = 1
@@ -81,7 +80,11 @@ if not DEBUG:
TEMPLATES = [{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(PROJECT_ROOT, 'templates')],
- 'OPTIONS': {'loaders': loaders, 'context_processors': context_processors}}]
+ 'OPTIONS': {
+ 'debug': DEBUG,
+ 'context_processors': context_processors,
+ 'loaders': loaders,
+ 'string_if_invalid': '<< MISSING VARIABLE >>'}}]
# Make this unique, and don't share it with anybody.
SECRET_KEY = os.environ.get('SECRET_KEY', '{{ secret_key }}')
@@ -229,8 +232,6 @@ CHECKOUT_PAYMENT_CHOICES = [
('default', 'Dummy provider')
]
-TEMPLATE_STRING_IF_INVALID = '<< MISSING VARIABLE >>'
-
MESSAGE_TAGS = {
messages.ERROR: 'danger',
}