This package used to load environment from .env file
pip install python-dotenv
DB_URL=sqlite///mydb.db
from dotenv import load_dotenv load_dotenv(override=True) DATABASE_URL = os.getenv("DB_URL")
Last updated 1 year ago