One of the causes of the local_settings.py anti-pattern is that putting SECRET_KEY, AWS keys, etc.. values into settings files has problem:
You may need to use os.environ.get("SOME_SECRET_KEY")