diff --git a/config.py b/config.py index e6ba47f..81a2398 100644 --- a/config.py +++ b/config.py @@ -1,6 +1,8 @@ import os +from dotenv import load_dotenv basedir = os.path.abspath(os.path.dirname(__file__)) +load_dotenv(os.path.join(basedir, '.env')) class Config(object): SECRET_KEY = os.environ.get('SECRET_KEY') or 'you-will-never-guess'