old_contents: import os
  import sys
  import site
  
  sys.path.append('/home/ubuntu/serve/weru/bin')
  sys.path.append('/home/ubuntu/serve/weru')
  sys.path.append('/home/ubuntu/serve/weru/archivist')
  sys.path.append('/home/ubuntu/serve/weru/lib/python2.7')
  sys.path.append('/home/ubuntu/serve/weru/lib/python2.7/site-packages')
  
  site.addsitedir('/home/ubuntu/serve/weru/lib/python2.7')
  site.addsitedir('/home/ubuntu/serve/weru/lib/python2.7/site-packages')
  
  os.environ['PYTHONPATH'] = '/home/ubuntu/serve/weru/lib/python2.7'
  os.environ['DJANGO_SETTINGS_MODULE'] = 'archivist.settings'
  
  import django.core.handlers.wsgi
  application = django.core.handlers.wsgi.WSGIHandler()
  
  
new_contents: import os
  import sys
  import site
  
  basepath = "/".join(os.path.abspath(__file__).split("/")[0:-1])
  
  sys.path.append(basepath)
  sys.path.append(basepath + '/bin')
  sys.path.append(basepath + '/archivist')
  sys.path.append(basepath + '/lib/python2.7')
  sys.path.append(basepath + '/lib/python2.7/site-packages')
                   
  site.addsitedir(basepath + '/lib/python2.7')
  site.addsitedir(basepath + '/lib/python2.7/site-packages')
  
  os.environ['PYTHONPATH'] = basepath + '/lib/python2.7'
  os.environ['DJANGO_SETTINGS_MODULE'] = 'archivist.settings'
  
  import django.core.handlers.wsgi
  application = django.core.handlers.wsgi.WSGIHandler()
  
  
subject: remove hardcoded basepath