升级后的服务器在django中出错

时间:2014-04-16 18:13:50

标签: python django

我在虚拟环境(env):~ ./manage.py runserver给了我这个:

Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
Traceback (most recent call last):

然后内部服务器错误是这样的:

File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 47, in load_middleware
     raise exceptions.ImproperlyConfigured('Error importing middleware %s: "%s"' % (mw_module, e))
 ImproperlyConfigured: Error importing middleware django.middleware.clickjacking: "No module named clickjacking"
 mod_wsgi (pid=1209): Exception occurred processing WSGI script '/home/momnet/wsgi.py'.
 Traceback (most recent call last):
   File "/usr/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 250, in __call__
     self.load_middleware()
   File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 47, in load_middleware
     raise exceptions.ImproperlyConfigured('Error importing middleware %s: "%s"' % (mw_module, e))
 ImproperlyConfigured: Error importing middleware django.middleware.clickjacking: "No module named clickjacking"

网站处于离线状态。关于可能导致这种情况的任何想法?

0 个答案:

没有答案