Import custom variable inside different Environment

I would avoid changing that value directly in the asgi/wsgi.py files. It’s better to change the environment that controls the settings module. This topic was discussed previously on the forum at Setting the 'django_settings_module' value. Hopefully that topic provides some clear guidance.

1 Like