我使用python 2.7 + Flask運行GAE應用程序,並使用SENDGRID第三方庫發送電子郵件。如何將字符串導入到app.yaml?
而且,我想將此項目上傳到Github,所以我需要在app.yaml中隱藏我的SENDGRID_API_KEY。 app.yaml中的
部分看起來像這樣
env_variables:
SENDGRID_API_KEY: 'my_send_grid_api_key'
我已經存儲的所有敏感鍵config.py。所以我想將'my_send_grid_api_key'部分替換爲cofing.Sendgrid_API_Key或類似的東西。
如何將字符串導入到app.yaml或指向config.py?
該解決方案似乎是非常有前途的,我會稍後再試回來非常感謝你。 –