from django.conf import settings

def add_settings( request ):
    """Add some selected settings values to the context"""
    return {
        'settings': {
            'GOOGLE_ANALYTICS_ACCOUNT': settings.GOOGLE_ANALYTICS_ACCOUNT,
        }
    }

from django.conf import settings

def add_settings( request ):
    """Add some selected settings values to the context"""
    return {
        'settings': {
            'GOOGLE_ANALYTICS_ACCOUNT': settings.GOOGLE_ANALYTICS_ACCOUNT,
            'DEBUG': settings.DEBUG,
        }
    }

Make settings.DEBUG available to templates It's used in the default base.html template so makes sense for it to actually appear in the context.
Make settings.DEBUG available to templates
It's used in the default base.html template so makes sense for it to actually appear in the context.
