我已经开始处理一个Django项目,我想设置一些环境变量,而不需要手动设置它们,也不需要使用bash文件来编写源代码.
我想设置以下变量:
export DATABASE_URL=postgres://127.0.0.1:5432/my_db_name
export DEBUG=1
# there are other variables, but they contain personal information
我读了this本,但这并不能解决我想要的问题.此外,我还try 在Preferences->;Build, Execution, Deployment->;Console->;Python Console/Django Console,但它为解释器设置变量.