title: How to set environment variables in PyCharm?
body: <p>I have started to work on a Django project, and I would like to set some environment variables without setting them manually or having a bash file to source.</p>
  <p>I want to set the following variables:</p>
  <pre><code>export DATABASE_URL=postgres://127.0.0.1:5432/my_db_name
  export DEBUG=1
  # there are other variables, but they contain personal information
  </code></pre>
  <p>I have read <a href="https://stackoverflow.com/questions/21538859/pycharm-set-environment-variable-for-run-manage-py-task">this</a>, but that does not solve what I want. In addition, I have tried setting the environment variables in <strong>Preferences</strong>-&gt; <strong>Build, Execution, Deployment</strong>-&gt;<strong>Console</strong>-&gt;<strong>Python Console</strong>/<strong>Django Console</strong>, but it sets the variables for the interpreter.</p>