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:
def plantsave(request):
rname = request.POST.get('react')
status = request.POST.get('status')
Here I am getting the value by post method but instead of it I need to set the value by using environment variable and access those values here to submit.