Keep Secret Keys Out

前端 未结 7 847
情话喂你
情话喂你 2020-12-07 21:02

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:

  • Secrets often shoul
7条回答
  •  太阳男子
    2020-12-07 21:44

    Ideally, local_settings.py should not be checked in for production/deployed server. You can keep backup copy somewhere else, but not in source control.

    local_settings.py can be checked in with development configuration just for convenience, so that each developer need to change it.

    Does that solve your problem?

提交回复
热议问题