#!/usr/bin/env python

"""
ASGI config for core project. 
""" 

import os 
from decouple import config
from django.core.asgi import get_asgi_application


# Get the desired settings file from the environment variable
settings_file = config('DJANGO_SETTINGS_FILE', default='base', cast=str) 
settings_module = f'core.settings.{settings_file}'

# Set the DJANGO_SETTINGS_MODULE environment variable
os.environ.setdefault("DJANGO_SETTINGS_MODULE", settings_module)   
application = get_asgi_application()
 