Search code examples
djangomod-pythondjango-1.5downgrade

Downgrade my project from django 1.5 to 1.4


I have a project in django 1.5 and I have to deploy it with mod_python. Unfortunately, I have seen that the module has been removed since 1.5. I know that there are another way such as mod_wsgi, gunicorn.. but could i downgrade my project to the previous version easily?


Solution

  • You can simply take this file; which is the handler for mod_python from 1.4 and use it in 1.5.

    You need to add it to a path that is accessible to Python and then set the PythonHandler directive in your Apache configuration to the module name.