import os
import sys

# Add project directory to Python path
PROJECT_DIR = os.path.dirname(os.path.abspath(__file__))
if PROJECT_DIR not in sys.path:
    sys.path.insert(0, PROJECT_DIR)

# Set Django settings module
os.environ['DJANGO_SETTINGS_MODULE'] = 'sweetvilla.settings'

# Import and create WSGI application
from django.core.wsgi import get_wsgi_application
from whitenoise import WhiteNoise

application = get_wsgi_application()
application = WhiteNoise(application)