old_contents: """
  Django settings for proj project in production
  
  For more information on this file, see
  https://docs.djangoproject.com/en/1.11/topics/settings/
  
  For the full list of settings and their values, see
  https://docs.djangoproject.com/en/1.11/ref/settings/
  """
  
  # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
  import os
  import sys
  BASE_DIR = os.path.dirname(os.path.realpath(__file__))
  sys.path.append("%s/pred/app/"%(BASE_DIR))
  
  import myfunc
  
  try:
      from shared_settings import *
  except ImportError:
      pass
  
  with open('/etc/django_pro_secret_key.txt') as f:
      SECRET_KEY = f.read().strip()
  
  # SECURITY WARNING: don't run with debug turned on in production!
  DEBUG = False
  
  ALLOWED_HOSTS = ['localhost', 'commonbackend.*', 'commonbackend.computenode.pcons3.se']
  
  computenodefile = "%s/pred/static/computenode.txt"%(BASE_DIR)
  if os.path.exists(computenodefile):
      nodelist = []
      try:
          nodelist = myfunc.ReadIDList2(computenodefile,col=0)
      except:
          pass
      ALLOWED_HOSTS += nodelist
  
  
new_contents: """
  Django settings for proj project in production
  
  For more information on this file, see
  https://docs.djangoproject.com/en/1.11/topics/settings/
  
  For the full list of settings and their values, see
  https://docs.djangoproject.com/en/1.11/ref/settings/
  """
  
  # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
  import os
  import sys
  BASE_DIR = os.path.dirname(os.path.realpath(__file__))
  sys.path.append("%s/pred/app/"%(BASE_DIR))
  
  import myfunc
  
  try:
      from shared_settings import *
  except ImportError:
      pass
  
  with open('/etc/django_pro_secret_key.txt') as f:
      SECRET_KEY = f.read().strip()
  
  # SECURITY WARNING: don't run with debug turned on in production!
  DEBUG = False
  
  ALLOWED_HOSTS = ['localhost', 'commonbackend.*', 'commonbackend.computenode.pcons3.se']
  
  computenodefile = "%s/pred/config/computenode.txt"%(BASE_DIR)
  if os.path.exists(computenodefile):
      nodelist = []
      try:
          nodelist = myfunc.ReadIDList2(computenodefile,col=0)
      except:
          pass
      ALLOWED_HOSTS += nodelist
  
  
subject: change location of computenode.txt