old_contents: import os
  import site
  
  os.environ.setdefault('CELERY_LOADER', 'django')
  os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'airmozilla.settings')
  
  # Add the app dir to the python path so we can import manage.
  #wsgidir = os.path.dirname(__file__)
  #site.addsitedir(os.path.abspath(os.path.join(wsgidir, '../')))
  
  
  from django.core.wsgi import get_wsgi_application
  
  application = get_wsgi_application()
  
  
  ## the following comes from
  ## https://mana.mozilla.org/wiki/display/websites/How+to+Set+up+New+Relic+for+a+site
  
  try:
      import newrelic.agent
  except ImportError:
      newrelic = False
  
  if newrelic:
      newrelic_ini = os.getenv('NEWRELIC_PYTHON_INI_FILE', False)
      if newrelic_ini:
          newrelic.agent.initialize(newrelic_ini)
      else:
          newrelic = False
  
  if newrelic:
      application = newrelic.agent.wsgi_application()(application)
  
  # vim: ft=python
  
new_contents: import os
  import site
  
  os.environ.setdefault('CELERY_LOADER', 'django')
  os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'airmozilla.settings')
  
  # Add the app dir to the python path so we can import manage.
  wsgidir = os.path.dirname(__file__)
  site.addsitedir(os.path.abspath(os.path.join(wsgidir, '../')))
  
  
  from django.core.wsgi import get_wsgi_application
  
  application = get_wsgi_application()
  
  
  ## the following comes from
  ## https://mana.mozilla.org/wiki/display/websites/How+to+Set+up+New+Relic+for+a+site
  
  try:
      import newrelic.agent
  except ImportError:
      newrelic = False
  
  if newrelic:
      newrelic_ini = os.getenv('NEWRELIC_PYTHON_INI_FILE', False)
      if newrelic_ini:
          newrelic.agent.initialize(newrelic_ini)
      else:
          newrelic = False
  
  if newrelic:
      application = newrelic.agent.wsgi_application()(application)
  
  # vim: ft=python
  
subject: add root to sys.path