I know how to access the settings module (as detailed here) but I have a number of custom settings modules that extend settings.py
and I'm not sure how to access it in my view. It's available in my template but I can't find any information on how to access it in the settings. os.environ["DJANGO_SETTINGS_MODULE"]
correctly returns the string of my intended settings module, but since it's just a string it doesn't have my variables on it.
custom_settings1.py
from settings import * # noqa: F403
SITE_ID = 1
SITE_NAME = "MY SITE"