"""
WSGI config for mysrc 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/4.0/howto/deployment/wsgi/
"""

import os
from pathlib import Path
import sys

HOME = Path(__file__).parent.parent
#print(f"Home is {HOME}")
if HOME not in sys.path:
    sys.path.insert(0, str(HOME))
    sys.path.insert(1, str(HOME / 'mysrc'))
    #for p in sys.path:
    #    print(p)

from django.core.wsgi import get_wsgi_application

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

application = get_wsgi_application()
