Instead of doing this, change es_settings.json to es_settings.py, define ES_SETTINGS there as a dictionary, and then import ES_SETTINGS in common.py.