Mar-17-2018, 02:20 AM
I think
I seem to recal solving this problem once by adjusting my sys.path.append to include the project directory. I dont have a current install to directly reference but you can try changing
os.environ deals with a string that represents your environment variables.
Quote:[Fri Mar 16 20:41:29.024538 2018] [:error] [pid 2426] [remote 174.95.101.30:54727] ImportError: No module named 'TheGreatWork'is saying that its looking for the module 'TheGreatWork' but its not in the sys path
I seem to recal solving this problem once by adjusting my sys.path.append to include the project directory. I dont have a current install to directly reference but you can try changing
""" this """ sys.path.append('/home/<user>/TheGreatWork/TheGreatWork') """ To this """ sys.path.append('/home/<user>/TheGreatWork')Whats probably causing this is the interpreter hitting
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "TheGreatWork.settings")So It says ok I need "TheGreatWork.settings" and then it looks on the sys path for it.
os.environ deals with a string that represents your environment variables.