Module to find missing? ! !

Module can not be found, the call can not?

You need to add on the call similar to the following documents Road King

= Os.path.dirname base_dir (os.path.dirname (os.path.abspath (__ file__ ))) 
sys.path.append (base_dir) 
this written in the same directory called file 


call format 
from conf Import Settings    # conf .py file folder setting for the folder

 

Guess you like

Origin www.cnblogs.com/zi-Chuan/p/11221503.html