【问题标题】:Import Error when run django with wsgi (apache)使用 wsgi (apache) 运行 django 时导入错误
【发布时间】:2013-09-14 05:54:40
【问题描述】:

我从 apache 运行 django 时发现了问题。 当我在调试模式下运行我的程序时(cmd 中的 manage.py runserver ),一切正常。 但是当我使用 apache 运行时,它显示错误:

ImportError at /systeminformation/ DLL load failed:
The specified module could not be found.

导入win32file 时出现错误。我使用 django 1.5.2 和 apache 2.2 并使用 mod_wsgi 运行。

谁能解决这个问题?

非常感谢

【问题讨论】:

  • 几个文档建议使用 linux 代替 windows。如果可以找到 DLL 并将其复制到 windows 安装文件夹,则可以重复使用 windows 安装光盘。

标签: python django apache mod-wsgi


【解决方案1】:

看起来您可能缺少一些 DLL。通过dependency walker 运行win32file,看看缺少什么。感谢 Ignacio 提供此应用链接。

【讨论】:

    猜你喜欢
    • 2012-11-25
    • 2013-05-03
    • 2019-01-31
    • 2016-07-07
    • 1970-01-01
    • 1970-01-01
    • 2011-01-20
    • 2011-07-12
    • 2015-03-23
    相关资源
    最近更新 更多