Upgrade to Django 3.2 LTS (Python 3.10) - #1571
Open
viniciusandrade wants to merge 8 commits into
Open
Conversation
Replace ugettext_lazy/ugettext with gettext_lazy/gettext across 72 files, remove django.utils.six and force_text, replace abandoned django-form-utils with minimal betterforms shim, remove dead recaptcha-client dependency, and remove deprecated default_app_config. All changes backward-compatible with Django 2.2.
Upgrade Django 2.2.24 -> 3.2.25 LTS with Python 3.7.8 -> 3.10.
Bump prod + dev dependencies to Django 3.2-compatible versions,
switch python-memcached -> pymemcache (PyMemcacheCache), and add
DEFAULT_AUTO_FIELD = django.db.models.AutoField to preserve integer PKs.
Fix Django 3.0 hard breakers: from_db_value signature, {% load staticfiles %}
in templates, and render_to_response calls/imports across views.
across all modules
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.
Upgrades the stack from Django 2.2.24 → 3.2.25 LTS on Python 3.7.8 → 3.10 (
python:3.10-alpine). Bundles the Phase 2 deprecation fixes (commit4ee052a) already on this branch.Goals
from_db_valuesignature,{% load staticfiles %}in templates,render_to_responsecalls/imports across viewsDEFAULT_AUTO_FIELD = 'django.db.models.AutoField'to settings (preserve integer PKs)python-memcached→pymemcache(PyMemcacheCache) in requirements + conf env filesmakemigrationsproduces no unexpected migrations for local appsmake dev_test) in the rebuilt Python 3.10 imageNotes
jsonfield==3.1.0retained — nativeJSONFieldmigration is deferred to Phase 4.proc/dump-db*.sh,proc/*.sql) were intentionally left untracked.See
.ai/features/004-upgrade-django-phase3-django-3.2.mdfor the detailed spec.