Upgrade Django to 6.0 with built-in CSP support + wagtail-localize (#444). Fix #443#444
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #443
Description
Upgrade the project from Django 5.2 to 6.0. Includes CSP migration to Django 6.0 built-in support, wagtail-localize bump to 1.13, and removal of deprecated settings.
Methodology and assumptions
Changes
pyproject.tomlpyproject.tomlapps/guide/settings/base.py,apps/guide/settings/production.pyapps/core/factories.pyapps/guide/settings/base.pyDjango 6.0 considerations reviewed
DEFAULT_AUTO_FIELD— already set toBigAutoFieldin settings, no change needed.URLFielddefault scheme — no custom code affected.Model.save()positional args — all calls use keyword args or no args.django-csppackage.Post-upgrade fix discovered during QA
Wagtail's search backend requires
django.contrib.postgresinINSTALLED_APPSfor PostgreSQLSearchVectorFieldsupport. Added toapps/guide/settings/base.pyafter encountering system check errors during Django 6.0 compatibility verification.Testing
make lintmake testpython manage.py checkmakemigrations --check --dry-runpython -Wa manage.py testmake frontendAI usage
AI-assisted: OpenCode (Kimi) used for debugging and PR description drafting; all code reviewed and tested by author.
References