old_contents: import os, sys
  import site
  
  SAL_ENV_DIR = '/usr/local/sal_env'
  
  # Use site to load the site-packages directory of our virtualenv
  site.addsitedir(os.path.join(SAL_ENV_DIR, 'lib/python2.7/site-packages'))
  
  # Make sure we have the virtualenv and the Django app itself added to our path
  sys.path.append(SAL_ENV_DIR)
  sys.path.append(os.path.join(SAL_ENV_DIR, 'sal'))
  os.environ.setdefault("DJANGO_SETTINGS_MODULE", "sal.settings")
  import django.core.handlers.wsgi
  application = django.core.handlers.wsgi.WSGIHandler()
new_contents: import os, sys
  import site
  
  SAL_ENV_DIR = '/usr/local/sal_env'
  
  # Use site to load the site-packages directory of our virtualenv
  site.addsitedir(os.path.join(SAL_ENV_DIR, 'lib/python2.7/site-packages'))
  
  # Make sure we have the virtualenv and the Django app itself added to our path
  sys.path.append(SAL_ENV_DIR)
  sys.path.append(os.path.join(SAL_ENV_DIR, 'sal'))
  os.environ.setdefault("DJANGO_SETTINGS_MODULE", "sal.settings")
  from django.core.wsgi import get_wsgi_application
  application = get_wsgi_application()
subject: Fix old code to be compatible with Django 1.8