Django和Python版本兼容表

记录一下Python和Django版本的兼容性对照表,如果还在维护老的项目可以作参考:

Django 版本 Python 版本 备注
5.1 3.10, 3.11, 3.12
5.0 3.10, 3.11, 3.12 最低要求Python3.10
4.2 3.8, 3.9, 3.10, 3.11, 3.12 (从4.2.8开始)
4.1 3.8, 3.9, 3.10, 3.11 (从4.1.3开始)
4.0 3.8, 3.9, 3.10 最低要求Python3.8
3.2 LTS 3.6, 3.7, 3.8, 3.9, 3.10 (从3.2.9开始)
3.0 3.6, 3.7, 3.8, 3.9 (从3.0.11开始) 最低要求Python3.6
2.2 LTS 3.5, 3.6, 3.7, 3.8 (从2.2.8开始)
2.1 3.5, 3.6, 3.7
2.0 3.4, 3.5, 3.6, 3.7 最低要求Python3.4
1.11 LTS 2.7, 3.4, 3.5, 3.6, 3.7 (从1.11.17开始) 最后一个支持Python2
1.10 2.7, 3.4, 3.5
1.9 2.7, 3.4, 3.5
1.8 2.7, 3.2, 3.3, 3.4, 3.5
1.7 2.7, 3.2, 3.3, 3.4 不再支持Python2.6
1.6 2.6, 2.7, 3.2, 3.3
1.5 2.6.5, 2.7, 3.2, 3.3
1.4 2.5, 2.6, 2.7

参考链接:

https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django

https://docs.djangoproject.com/en

相关推荐
aqi009 小时前
15天学会AI应用开发(七)有了大模型为什么还要引入RAG
人工智能·python·大模型·ai编程·ai应用
金銀銅鐵11 小时前
用 Python 实现 Take-Away 游戏
python·游戏
copyer_xyf11 小时前
Agent 流程编排
后端·python·agent
copyer_xyf12 小时前
Agent RAG
后端·python·agent
copyer_xyf12 小时前
【RAG】向量数据库:milvus
后端·python·agent
copyer_xyf12 小时前
Agent 记忆管理
后端·python·agent
星云穿梭1 天前
用Python写一个带图形界面的学生管理系统——完整教程
python
金銀銅鐵1 天前
用 Pygame 实现 15 puzzle
python·数学·游戏
黄忠1 天前
大模型之LangGraph技术体系
python·llm