I am working on a Python API project on the Glitch platform and I didn't find anything on how to reference the .env file and use the variables in a python script. os.environ will not work because I haven't imported anything to the app. How should I reference it properly and how should I import the module correctly?
import os
var = os.environ['SECRET_NAME']  # Will raise a KeyError if not existed
var2 = os.environ.get('SECRET_NAME')  # Will give a value of 'None" if not existed 
 
     
    