求指点:IIS部署DJango项目,出现错误。

部署好了,就是提示这个错误,个人觉得应该是路径没有用转义符,可是不知道是哪个文件里的路径有问题。。。求指点。

Error occurred while reading WSGI handler:

Traceback (most recent call last):
File “c:\python\lib\site-packages\wfastcgi.py”, line 791, in main
env, handler = read_wsgi_handler(response.physical_path)
File “c:\python\lib\site-packages\wfastcgi.py”, line 633, in read_wsgi_handler
handler = get_wsgi_handler(os.getenv(“WSGI_HANDLER”))
File “c:\python\lib\site-packages\wfastcgi.py”, line 616, in get_wsgi_handler
raise ValueError(’"%s" could not be imported%s’ % (handler_name, last_tb))
ValueError: “django.core.wsgi.get_wsgi_application()” could not be imported: Traceback (most recent call last):
File “c:\python\lib\site-packages\wfastcgi.py”, line 605, in get_wsgi_handler
handler = handler()
File “c:\python\lib\site-packages\django\core\wsgi.py”, line 12, in get_wsgi_application
django.setup(set_prefix=False)
File “c:\python\lib\site-packages\django_init_.py”, line 19, in setup
configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
File “c:\python\lib\site-packages\django\conf_init_.py”, line 76, in getattr
self.setup(name)
File "c:\python\lib\site-packages\django\conf_init
.py", line 63, in setup
self.wrapped = Settings(settings_module)
File "c:\python\lib\site-packages\django\conf_init
.py", line 142, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File "c:\python\lib\importlib_init
.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “

你可能感兴趣的:(django)