diff --git a/note_kfet/settings/__init__.py b/note_kfet/settings/__init__.py
index 3d9953675b6ab815a9b8bd9c417a1aa69cf17094..3aa115f902551d9361543b2f37497d1509055d92 100644
--- a/note_kfet/settings/__init__.py
+++ b/note_kfet/settings/__init__.py
@@ -12,7 +12,7 @@ def read_env():
     directory.
     """
     try:
-        with open('.env') as f:
+        with open(os.path.join(BASE_DIR, '.env')) as f:
             content = f.read()
     except IOError:
         content = ''
@@ -30,6 +30,7 @@ def read_env():
 
 
 # Try to load environment variables from project .env
+BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
 read_env()
 
 # Load base settings