"""
ASGI config for Stream Processor project.

This module contains the ASGI (Asynchronous Server Gateway Interface) configuration
for the Django application. ASGI is the standard interface between Python
web applications and web servers.

It exposes the ASGI callable as a module-level variable named ``application``.

For more information on this file, see:
https://docs.djangoproject.com/en/4.2/howto/deployment/wsgi/
"""

import os
from django.core.asgi import get_asgi_application

# Set the default Django settings module for the ASGI application
# This tells Django which settings file to use when the application starts
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings')

# Get the ASGI application callable
# This is what web servers like Gunicorn or uWSGI will use to serve the application
application = get_asgi_application()