mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 17:16:00 +03:00
[PR #1388] [MERGED] Update to Django 4.2.x #4408
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#4408
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ArchiveBox/ArchiveBox/pull/1388
Author: @jimwins
Created: 3/26/2024
Status: ✅ Merged
Merged: 3/26/2024
Merged by: @pirate
Base:
dev← Head:upgrade-django-to-4.2.x📝 Commits (1)
8b1b01eUpdate to Django 4.2.x, now in LTS until April 2026📊 Changes
6 files changed (+104 additions, -86 deletions)
View changed files
📝
archivebox/core/__init__.py(+0 -1)📝
archivebox/core/admin.py(+100 -75)📝
archivebox/core/apps.py(+0 -2)📝
archivebox/core/settings.py(+0 -4)📝
archivebox/core/urls.py(+2 -2)📝
pyproject.toml(+2 -2)📄 Description
Summary
This updates Django to 4.2.x, which is currently in LTS until April 2026, and away from 3.1.x which is no longer supported.
More changes may be required.
I had to stub out the LDAP stuff in(This commit fixes the LDAP issue that I had.)archivebox/core/auth.pyto get it to run locally (but did not commit this) because ofImportError: attempted relative import beyond top-level packageerrors. I'm not sure I understand the dependencies there, but it seems like LDAP configuration should get passed into the Django app rather than it trying to import it from outsidecore.This didn't cause any additional tests to fail for me, and some cursory poking around the UI didn't turn up any problems.
The change to
archivebox/core/admin.pyis less significant than it appears because it's really just moving theAdminSitesubclass above theModelAdminsubclasses so the@admin.register(..., site=archivebox_admin)works. Maybe it would be an opportunity to split these admin classes into a package.Related issues
I have no idea if this fixes any reported issues, but probably not. I assume some new features come from updating Django, but I don't know enough to even suggest what those might be.
Changes these areas
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.