old_contents: """
  WSGI config for schedulesite project.
  
  It exposes the WSGI callable as a module-level variable named ``application``.
  
  For more information on this file, see
  https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/
  """
  
  import os
  os.environ.setdefault("DJANGO_SETTINGS_MODULE", "schedulesite.settings")
  
  from django.core.wsgi import get_wsgi_application
  application = get_wsgi_application()
  
new_contents: """
  WSGI config for schedulesite project.
  
  It exposes the WSGI callable as a module-level variable named ``application``.
  
  For more information on this file, see
  https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/
  """
  
  import os
  #os.environ.setdefault("DJANGO_SETTINGS_MODULE", "schedulesite.settings")
  
  from django.core.wsgi import get_wsgi_application
  _application = get_wsgi_application()
  
  def application(environ, start_response):
      os.environ['DJANGO_SETTINGS_MODULE'] = environ['DJANGO_SETTINGS_MODULE']
      return _application(environ, start_response)
  
subject: change wsgi.py to pass DJANGO_SETTINGS_MODULE envvar from Apache