old_contents: """
  WSGI config for ideascube 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.7/howto/deployment/wsgi/
  """
  
  import os
  os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ideascube.settings")
  os.environ.setdefault("STORAGE_ROOT", "/var/ideascube")
  
  from django.core.management import call_command
  call_command('migrate', '--noinput', '--verbosity=1', '--database=default')
  call_command('migrate', '--noinput', '--verbosity=1', '--database=transient')
  call_command('collectstatic', '--noinput', '--verbosity=1')
  
  from django.core.wsgi import get_wsgi_application
  application = get_wsgi_application()
  
new_contents: """
  WSGI config for ideascube 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.7/howto/deployment/wsgi/
  """
  
  import os
  os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ideascube.settings")
  os.environ.setdefault("STORAGE_ROOT", "/var/ideascube")
  
  from django.core.wsgi import get_wsgi_application
  application = get_wsgi_application()
  
  from django.core.management import call_command
  call_command('migrate', '--noinput', '--verbosity=1', '--database=default')
  call_command('migrate', '--noinput', '--verbosity=1', '--database=transient')
  call_command('collectstatic', '--noinput', '--verbosity=1')
  
  
subject: Load the application before running commands