📜  django 导入设置 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:18.453000             🧑  作者: Mango

代码示例2
#settings.py

EMAIL_PASS = "FOO"

# in any file 
from django.conf import settings 
email_password = settings.EMAIL_PASS #to access that variable.