Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Django to 4.2 #667

Merged
merged 10 commits into from
Jan 18, 2024
Merged

Upgrade Django to 4.2 #667

merged 10 commits into from
Jan 18, 2024

Conversation

Dhwaniartefact
Copy link
Contributor

@Dhwaniartefact Dhwaniartefact commented Sep 13, 2023

This sets django-upgrade in pre-commit to upgrade Django to 4.2.

A few changes are worth mentioning:

The USE_L10N setting is removed as localized formatting of data will always be enabled. Ref: https://docs.djangoproject.com/en/4.2/ref/settings/#std-setting-USE_L10N

STATICFILES_STORAGE: Static files storage engine can be configured with the [STORAGES] setting. Ref: https://docs.djangoproject.com/en/4.2/ref/settings/#std-setting-STORAGES

Connected to archivematica/Issues#1624

Copy link
Member

@replaceafill replaceafill left a comment

Choose a reason for hiding this comment

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

Looks like you still need to make new migrations? And could you please add Python 3.11 to the CI workflow?

storage_service/storage_service/settings/base.py Outdated Show resolved Hide resolved
@replaceafill
Copy link
Member

This looks great @Dhwaniartefact, thanks! Let's leave this PR here until we milestone its issue.

@replaceafill
Copy link
Member

@Dhwaniartefact It seems you still need to clean some comments in the base settings module left from the settings you removed.

@Dhwaniartefact
Copy link
Contributor Author

Dhwaniartefact commented Sep 21, 2023

Sure let me do it.

@Dhwaniartefact Dhwaniartefact force-pushed the Upgrade-Django4.2 branch 2 times, most recently from cf15fb6 to 246116d Compare January 18, 2024 13:54
@Dhwaniartefact Dhwaniartefact marked this pull request as ready for review January 18, 2024 14:11
Copy link
Member

@replaceafill replaceafill left a comment

Choose a reason for hiding this comment

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

Looks good @Dhwaniartefact, but I left a couple of small requests.

.github/workflows/test.yml Outdated Show resolved Hide resolved
.github/workflows/test.yml Outdated Show resolved Hide resolved
@Dhwaniartefact Dhwaniartefact merged commit d2907d6 into qa/0.x Jan 18, 2024
13 checks passed
@Dhwaniartefact Dhwaniartefact deleted the Upgrade-Django4.2 branch January 18, 2024 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants