有哪位遇到过?我上网找了解决办法,但MS没起作用,而且它不是每次都出现。请问哪位有较好的解决办法?

1 kaiix Jul 7, 2011 Do you use this in the source code: import settings from django.conf? Try to fix this by environment injection: import sys import os sys.path.append(abs_path_to_project) os.environ['DJANGO_SETTINGS_MODULE']='prj.settings' or just import settings not from django.conf for details, plz look into django's source code :p |