old_contents: from django.conf import settings
  
  
  def installed_apps_context_processor(request):
      bb_apps = []
      for app in settings.INSTALLED_APPS:
          if app[:11] == 'bluebottle.':
              # Ignore some standard apps
              if app[11:] not in ['common', 'admin_dashboard', 'contentplugins']:
                  bb_apps.append(app[11:])
      context = {
          'installed_apps': settings.INSTALLED_APPS,
          'bb_apps': bb_apps,
      }
      return context
  
  
  def google_analytics_code(request):
      """
      Add Google Analytics code from settings file to general request context.
      """
      try:
          context = {'ANALYTICS_CODE': settings.ANALYTICS_CODE}
      except AttributeError:
          context ={}
      return context
  
  def google_maps_api_key(request):
      """
      Add Google Maps API key from settings file to general request context.
      """
      try:
          context = {'MAPS_API_KEY': settings.MAPS_API_KEY}
      except AttributeError:
          context = {}
      return context
new_contents: from django.conf import settings
  
  
  def installed_apps_context_processor(request):
      bb_apps = []
      for app in settings.INSTALLED_APPS:
          if app[:11] == 'bluebottle.':
              # Ignore some standard apps
              if app[11:] not in ['common', 'admin_dashboard', 'contentplugins']:
                  bb_apps.append(app[11:])
      context = {
          'installed_apps': settings.INSTALLED_APPS,
          'bb_apps': bb_apps,
      }
      return context
  
  
  def google_analytics_code(request):
      """
      Add Google Analytics code from settings file to general request context.
      """
      try:
          context = {'ANALYTICS_CODE': settings.ANALYTICS_CODE}
      except AttributeError:
          context ={}
      return context
  
  def google_maps_api_key(request):
      """
      Add Google Maps API key from settings file to general request context.
      """
      try:
          context = {'MAPS_API_KEY': settings.MAPS_API_KEY}
      except AttributeError:
          context = {}
      return context
  
  def git_commit(request):
      """
      Make the git commit hash available in the templates.
      """
      try:
          context = {'GIT_COMMIT': settings.GIT_COMMIT}
      except AttributeError:
          context = {}
      return context
subject: add a context processor for using a GIT_COMMIT setting in templates