title: How to set environment variable using Django and Python?
body: <p>I need to set some environment variable and it should be fetched inside function and the values will go for save inside the database using Django and Python. My code is below:</p>
  
  <pre><code>def plantsave(request):
      rname = request.POST.get('react')
      status = request.POST.get('status')
  </code></pre>
  
  <p>Here I am getting the value by post method but instead of it I need to set the value by using <code>environment variable</code> and access those values here to submit. </p>