Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.py
to get it to run locally (but did not commit this) because ofImportError: attempted relative import beyond top-level package
errors. 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.py
is less significant than it appears because it's really just moving theAdminSite
subclass above theModelAdmin
subclasses 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