1👍
You need to make sure the root of your project is in python path when you run the script. Something like this might help.
import os import sys projpath = os.path.dirname(__file__) sys.path.append(os.path.join(projpath, '..'))
Source:stackexchange.com