How to use Python 3 and Django with Apache?

前端 未结 5 1954
北恋
北恋 2021-02-04 13:27

My goal is to set up Python 3 with Apache. My biggest problem is actually acquiring mod_python.so. For the life of me I found only one site where it could be downloaded (http://

5条回答
  •  遇见更好的自我
    2021-02-04 13:40

    You can't unser python3 with django. From Django FAQ: http://docs.djangoproject.com/en/dev/faq/install/#can-i-use-django-with-python-3

    Can I use Django with Python 3?

    Not at the moment. Python 3.0 introduced a number of backwards-incompatible changes to the Python language, and although these changes are generally a good thing for Python’s future, it will be a while before most Python software catches up and is able to run on Python 3.0. For larger Python-based software like Django, the transition is expected to take at least a year or two (since it involves dropping support for older Python releases and so must be done gradually).

    In the meantime, Python 2.x releases will be supported and provided with bug fixes and security updates by the Python development team, so continuing to use a Python 2.x release during the transition should not present any risk.

提交回复
热议问题