This really helped me out! It is worth stating that if you have an application deployed, you should specify the path of the dot env on the settings file like so:
import os
from dotenv import load_dotenv
dotenv_path = os.path.join(os.path.dirname(__file__), '.env')
load_dotenv(dotenv_path)
This really helped me out! It is worth stating that if you have an application deployed, you should specify the path of the dot env on the settings file like so:
I'm glad you found it helpful. Thanks for the note too :)