在项目中加入

sys.path.append('你的django项目路径')

sys.path.append('python的site-packages路径')