I have a project that may be started on local machine with ./manage.py runserver
and on the remote server with uwsgi. I have two settings files: settings (for local machine) and prod_settings. So when I start project with uwsgi I simply use this option
env = DJANGO_SETTINGS_MODULE=prod_settings
But sometimes I have to know what module is currently active. I can check DJANGO_SETTINGS_MODULE
key but think that it is not the True way. Tried to google something but found nothing yet.
Thanks for your advices.