Django已在Site5上设置并且运行顺利,直到我尝试安装django-lockdown然后出现问题。不幸的是,我无法回到上一个工作状态。
这是错误日志:
mod_fcgid: stderr: File "/home/projectname/.local/lib/python2.6/site-packages/django/db/models/base.py", line 96, in __new__
mod_fcgid: stderr: File "/home/projectname/.local/lib/python2.6/site-packages/django/contrib/contenttypes/models.py", line 129, in <module>
mod_fcgid: stderr: File "/home/projectname/.local/lib/python2.6/site-packages/django/contrib/auth/models.py", line 20, in <module>
mod_fcgid: stderr: File "/home/projectname/.local/lib/python2.6/site-packages/django/contrib/auth/backends.py", line 3, in <module>
mod_fcgid: stderr: File "/home/projectname/.local/lib/python2.6/site-packages/django/contrib/auth/middleware.py", line 3, in <module>
mod_fcgid: stderr: File "/home/projectname/.local/lib/python2.6/site-packages/django/utils/importlib.py", line 40, in import_module
mod_fcgid: stderr: File "/home/projectname/.local/lib/python2.6/site-packages/django/utils/module_loading.py", line 21, in import_by_path
mod_fcgid: stderr: File "/home/projectname/.local/lib/python2.6/site-packages/django/core/handlers/base.py", line 47, in load_middleware
mod_fcgid: stderr: File "/home/projectname/.local/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line 187, in __call__
我一直试图从错误日志中解释问题的原因,但目前完全没有线索。如果有人应该熟悉这些错误日志行,请告诉我如何解决这个问题...
答案 0 :(得分:0)
你检查过新python / django安装的所有权吗? fastCGI模块可能没有访问权限。
答案 1 :(得分:0)
另一个版本的Django搞砸了,造成了这个错误。我最后通过重置托管帐户(以及文件)来修复它。比被宠坏的网络应用程序更好地工作!