old_contents: # Enable WhiteNoise
  from django.core.wsgi import get_wsgi_application
  from whitenoise.django import DjangoWhiteNoise
  application = get_wsgi_application()
  application = DjangoWhiteNoise(application)
  
new_contents: # Fix the settings so that Whitenoise is happy
  import os
  if 'DJANGO_SETTINGS_MODULE' not in os.environ:
      os.environ['DJANGO_SETTINGS_MODULE'] = 'settings_local'
  
  # Enable WhiteNoise
  from django.core.wsgi import get_wsgi_application
  from whitenoise.django import DjangoWhiteNoise
  application = get_wsgi_application()
  application = DjangoWhiteNoise(application)
  
subject: Fix bug 1237072 - Fix issue with whitenoise and settings