Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 django 1.5 中有一个项目,我必须使用 mod_python 部署它。不幸的是,我看到该模块自 1.5 以来已被删除。我知道还有另一种方式,例如 mod_wsgi、gunicorn.. 但是我可以轻松地将我的项目降级到以前的版本吗?
如果您不使用 1.5 的任何新功能(例如可配置的用户模型),从 Django 1.5 降级到 1.4 应该不是问题。
有关新功能的完整列表,请参阅发行说明。
您可以简单地获取此文件;这是 1.4 中 mod_python 的处理程序,并在 1.5 中使用它。
您需要将其添加到 Python 可访问的路径,然后将PythonHandlerApache 配置中的指令设置为模块名称。
PythonHandler