from django.conf import settings # import the settings file def braintree_merchant(request): # pragma: no cover # return the value you want as a dictionnary. you may add multiple values in there. # return {'BRAINTREE_MERCHANT_ID': settings.BRAINTREE_MERCHANT_ID} return {'BRAINTREE_MERCHANT_ID': 'jytq7yxsm66qqdzb'}