Skip to content

Instantly share code, notes, and snippets.

@nfarah86
Created May 18, 2020 06:51
Show Gist options
  • Save nfarah86/f87a9d37f1f72bb2d4a73d9b73dc87b4 to your computer and use it in GitHub Desktop.
Save nfarah86/f87a9d37f1f72bb2d4a73d9b73dc87b4 to your computer and use it in GitHub Desktop.
Create a settings file for your credentials
import os
from dotenv import load_dotenv
load_dotenv()
MONGO_URI = os.environ.get('MONGO_URI')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment