Skip to content

fix: add django42, django52 support - #261

Merged
feanil merged 1 commit into
openedx:masterfrom
hinakhadim:django52support
Apr 23, 2025
Merged

feanil merged 1 commit into
openedx:masterfrom
hinakhadim:django52support

Conversation

@hinakhadim

@hinakhadim hinakhadim commented Apr 17, 2025 •

Copy link
Copy Markdown
Contributor

Add Django 5.2 Support

This PR updates the codebase to be compatible with Django 5.2 while maintaining compatibility with Django 4.2.

Changes Made:

  • Update ci and tox files
  • Ran django-upgrade to apply necessary syntax updates for Django 5.2.
  • Run tests using tox command and resolved the warning
  • Ensured all modifications remain backward-compatible with Django 4.2.

django-upgrade usage:

I ran command git ls-files -z -- '*.py' | xargs -0r django-upgrade --target-version 5.2

@awais786

Copy link
Copy Markdown

Django 5.2 is already included in base.txt, but to maintain consistency with the existing pattern, we're adding support for both 4.2 and 5.2.

@awais786
awais786 requested a review from feanil April 21, 2025 17:23

@feanil feanil left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It looks like the 5.2 tests aren't being run, you probably need to modify the workflow.yml file to make sure that they're running.

@hinakhadim

Copy link
Copy Markdown
Contributor Author

Thanks for mentioning. I have updated the workflow file to run tests for django4.2 (Previously, tests were only running for django5.2). Now, it is running for both django4.2 and django5.2

@feanil
feanil merged commit b6adef6 into openedx:master Apr 23, 2025
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.

Add Django 5.2 support to cc2olx

3 participants