Upgrade Django from 3.2 to 4.2

未关闭
#6,443 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
1/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
django, python
领域
backend

调研方向

Read the Django 4.0 and 4.1 release notes, then inspect requirements.in and requirements.txt for Django-coupled dependencies, starting with the django-pgtrigger cap. Upgrade Django to 4.2 and compatible dependencies, then check that pytest, the browser smoke test, and makemigrations --check pass; the issue says this work is not open for contribution.

由索引模型根据 Issue 内容生成。

描述

dependencies DEV: backend

❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

Overview

Studio pins django==3.2.24. Django 3.2 stopped receiving security fixes in April 2024. Dependency upgrades that need Django ≥ 4.2 are held back until Studio moves to Django 4.2 LTS.

Complexity: High
Target branch: unstable

Context
  • django-cte 2.0.0+ supports only Django 4.2–6.1, so the 5.x bump in #6435 was closed.
  • requirements.in caps django-pgtrigger<4.12.0 because 4.12 drops Django 3.2 support.
The Change
  • Studio should run on Django 4.2 with every Django-coupled dependency at a version that supports it.
Acceptance Criteria
  • requirements.txt pins Django 4.2.x.
  • Each requirements.in cap that exists only because of Django 3.2 is removed, starting with the django-pgtrigger<4.12.0 cap.
  • pytest and the browser smoke test pass.
  • Migrations generated under Django 4.2 produce no unexpected changes from makemigrations --check.
References

AI usage

rtibblesbot (Claude Code) found this blocker while reviewing #6435 and drafted this issue.

主要语言
JavaScript
星标
214
派生
327
平均合并
17 小时 5 分钟
30 天内合并 PR
25

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

learningequality/studio 的其他 Issue

查看 learningequality/studio 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。