Skip to content

Instantly share code, notes, and snippets.

@Jamp
Last active June 15, 2020 21:24
Show Gist options
  • Save Jamp/5895d92992d8faadb11862c72d93ca03 to your computer and use it in GitHub Desktop.
Save Jamp/5895d92992d8faadb11862c72d93ca03 to your computer and use it in GitHub Desktop.
Cargar variables entorno
MONGODB_URL=xxxx
POSTGRESQL_URL=xxxx
API_URL=xxxx
PROXY_URL=xxxx
CLIENT_ID=xx
from os.path import join, dirname
from dotenv import load_dotenv
dotenv_path = join(dirname(__file__), '.env')
load_dotenv(dotenv_path)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment