title: How to write in .env file from python code
body: <p>I want to write in the .env using python code. This is what I tried but it's not working:-</p>
  <pre><code>os.environ['username'] = 'John'
  os.environ['email'] = 'abc@gmail.com'
  </code></pre>