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

Django 4.2 upgrade #2346

Merged
merged 9 commits into from
Apr 17, 2024
Merged

Django 4.2 upgrade #2346

merged 9 commits into from
Apr 17, 2024

Conversation

joshuastegmaier
Copy link
Collaborator

@joshuastegmaier joshuastegmaier commented Apr 17, 2024

https://staff.loc.gov/tasks/browse/CONCD-676

The code changes on our side are very minor, but the upgrade broke four libraries that never updated for Django 4. It was decided to integrate the code from those libraries directly into Concordia to simplify maintenance of the code.

django-tabular-export and django-bittersweet were released into the public domain, so I've incorporated those directly, removing most of django-bittersweets code because it wasn't used in Concordia.

django-prometheus-metrics and django-passwords were released under licenses that allow the free redistributions and modification of the code so long as the license and copyright notice are included. I've included those in the LICENSE file in the new prometheus-metrics Django app and concordia.passwords module.

I would suggest clearing your virtualenv and reinstalling once you pull in this code. You will likely also need to modify your personal settings file to properly use the STORAGES setting. I changed:

DEFAULT_FILE_STORAGE = "storages.backends.s3boto3.S3Boto3Storage"
to
STORAGES = { **STORAGES, "default": { "BACKEND": "storages.backends.s3boto3.S3Boto3Storage", }, }

after making sure STORAGES was imported from .settings_template

@joshuastegmaier joshuastegmaier marked this pull request as ready for review April 17, 2024 17:01
@jkueloc jkueloc merged commit 61cc224 into main Apr 17, 2024
7 checks passed
@joshuastegmaier joshuastegmaier deleted the CONCD-676-jstegmaier-django-upgrade branch April 23, 2024 19:00
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.

3 participants