I am getting error
ModuleNotFoundError: No module named 'settings_sensitive'
while i was working on a downloaded project where i need to import a file (settings_sensitive.py).
I double checked all the possible errors that could be there.
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
settings_sensitive = BASE_DIR + '/source/settings_sensitive.py'
if os.path.isfile(settings_sensitive):
from settings_sensitive import *

Try this