old_contents: 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,
          }
      }
  
new_contents: 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,
          }
      }
  
subject: 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.