Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
with:
python-version: "3.11"
python-version: "3.14"
- name: Install ghp-import
run: pip install ghp-import
- name: Build documentation
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "mitxonline"
version = "0.69.1"
description = "MITx Online"
authors = [{ name = "MIT ODL" }]
requires-python = "~=3.11.0"
requires-python = "~=3.14.4"
readme = "README.md"
license = { text = "BSD-3" }
dependencies = [
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The pyproject.toml requires Python ~=3.14.3 but pins Django to 5.1.15, which is not compatible with Python 3.14, causing an application startup failure.
Severity: CRITICAL

Suggested Fix

To resolve the incompatibility, upgrade Django to a version that supports Python 3.14, such as 5.2.8 or later. Alternatively, if Python 3.14 is not a strict requirement, revert the requires-python setting to be compatible with Django 5.1.15. Ensure the CI workflow is updated to test against the target Python version.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: pyproject.toml#L9

Potential issue: The project configuration in `pyproject.toml` has been updated to
require Python `~=3.14.3`, but it continues to pin the Django dependency to version
`5.1.15`. According to Django's documentation, support for Python 3.14 was introduced in
Django 5.2. Attempting to run the application with Python 3.14 will result in an
immediate crash on startup, as Django 5.1.15 is incompatible and will fail to import.
This issue is not caught by CI because the workflow still tests against Python 3.11.

Expand Down
Loading
Loading