重要错误:没有命名的模块Django.core.wsgi

2024-04-19 01:24:04 发布

您现在位置:Python中文网/ 问答频道 /正文

下面是错误日志中的快照

mod_wsgi (pid=12320): Target WSGI script '/var/www/firstweb/firstweb/wsgi.py' cannot be loaded as Python module.
mod_wsgi (pid=12320): Exception occurred processing WSGI script
'/var/www/firstweb/firstweb/wsgi.py'.
Traceback (most recent call last):
File "/var/www/firstweb/firstweb/wsgi.py", line 6, in ?
   import django.core.handlers.wsgi 
ImportError: No module named django.core.handlers.wsgi

配置:python2.7.11+centos5.11+Django 1.8+mod_chsgi3.5

Its is showing Internal Server Error and from Import error from error log

在wsgi.py在

^{pr2}$

Tags: djangofrompycoremodwsgivarhandlers