Created
July 10, 2018 17:43
-
-
Save jattoabdul/cad53998c05e459edfa219d17c33fb2f to your computer and use it in GitHub Desktop.
Configuration __init__.py file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from os import path, environ | |
from dotenv import load_dotenv | |
env_path = path.join(path.dirname(__file__), path.pardir, '.env') | |
load_dotenv(env_path, override=True) | |
def get_env(key): | |
return environ.get(key) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment