I'm using a settings module instead of a single settings file for my django project. That means in my wsgi.py file I have something like this:
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings.prod")
or
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings.dev")
depending upon my environment. I'd really like to be able to set a variable in a config file so that I can not have to go into this file and change it every time I push to prod.
Not a big deal you're saying? Well it's easy to forget and then boom my app is insecure because it's on dev settings. I would also use this config variable in other places in my app so I have one "global" flag that sets my app to production or dev settings.