"""
WSGI config for mysite 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

from django.core.wsgi import get_wsgi_application

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mysite.settings')

application = get_wsgi_application()

# import os
# os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings")

# from django.core.wsgi import get_wsgi_application
# #application = get_wsgi_application()

# import logging
# logger = logging.getLogger(__name__)

# try:
#     application = get_wsgi_application()
#     logging.info('WSGI without exception')
# except Exception:
#     logging.info('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)

