import os
import sys

# 1. Add your project directory to the sys.path
# This ensures Python can find your 'backend' folder
project_root = os.path.dirname(__file__)
if project_root not in sys.path:
    sys.path.insert(0, project_root)

# 2. Set your Django settings module
# Replace 'backend.settings' if your settings file is elsewhere
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'backend.settings')

# 3. Import the actual application from your project's wsgi file
from backend.wsgi import application