add settings_export to use settings vars in templates

This commit is contained in:
Seth Ladygo
2019-03-15 19:22:13 -07:00
parent ae3ae98dc8
commit 59466bffa1
2 changed files with 7 additions and 0 deletions

View File

@ -104,6 +104,7 @@ TEMPLATES = [
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
'django_settings_export.settings_export',
"account.context_processors.account",
],
},
@ -169,3 +170,8 @@ if DJDT:
# bring in ansible-defined settings
from .settings_ansible import *
# what settings to expose in templates
SETTINGS_EXPORT = [
'CUSTOMER_NAME',
]