YOUR_CUSTOM_SETTING = 'some value'
from django.conf import settings


class YourView(DetailView):

    def get_context_data(self, **kwargs):
        context = super(YourView, self).get_context_data(**kwargs)
context['YOUR_CUSTOM_SETTING'] = settings.YOUR_CUSTOM_SETTING
return context
{{YOUR_CUSTOM_SETTING}}
Django: how to use settings in templates?