import os
import sys

# Ensure current directory is at the top of sys.path
app_dir = os.path.dirname(os.path.abspath(__file__))
if app_dir not in sys.path:
    sys.path.insert(0, app_dir)

# Set the Django settings module
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings')

# Import and expose WSGI application for Phusion Passenger / cPanel
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
