"""
WSGI config for pympm 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.10/howto/deployment/wsgi/
"""

import os, sys

from django.core.wsgi import get_wsgi_application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pympm.settings")

#application = get_wsgi_application()

try:
    application = get_wsgi_application()
    print('WSGI without exception')
except Exception:
    print('handling WSGI exception')
    # Error loading applications
    if 'mod_wsgi' in sys.modules:
        traceback.print_exc()
        os.kill(os.getpid(), signal.SIGINT)
        time.sleep(2.5)

@@ -228,15 +228,63 @@
 t os
-,
+%0Aimport time%0Aimport traceback%0Aimport signal%0Aimport
  sys%0A
-%0A
 from

Fix wsgi bug