def settings(request):
    """
    Put selected settings variables into the default template context
    """
from django.conf import settings
return {'DOMAIN': settings.DOMAIN, 'GOOGLEMAPS_API_KEY': settings.
    GOOGLEMAPS_API_KEY}
Определение констант в Django