Skip to content

Instantly share code, notes, and snippets.

@luzfcb

luzfcb/base.py Secret

Created July 28, 2020 15:12
Show Gist options
  • Save luzfcb/96515096c777b360d7b13aad2239fdec to your computer and use it in GitHub Desktop.
Save luzfcb/96515096c777b360d7b13aad2239fdec to your computer and use it in GitHub Desktop.
# everycheese
BASE_DIR = Path(__file__).resolve(strict=True).parent.parent.parent
APPS_DIR = BASE_DIR / "everycheese"
env = environ.Env()
ENV_FILE = BASE_DIR / ".env"
if Path(ENV_FILE).exists():
# OS environment variables take precedence over variables from .env
env.read_env(str(ENV_FILE))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment