-
Notifications
You must be signed in to change notification settings - Fork 10
Add support for Django 5.2 #257
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
Conversation
347f800
to
a0044d9
Compare
Updated requirements to make the CI tests pass. Otherwise, following error is generating:
|
5c75b8b
to
7fe1cd5
Compare
@@ -46,10 +46,6 @@ | |||
# to load the internationalization machinery. | |||
USE_I18N = True | |||
|
|||
# If you set this to False, Django will not format dates, numbers and | |||
# calendars according to the current locale. | |||
USE_L10N = True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to find out how it will effect prod ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We currently have USE_L10N = True
in this repository. Since this setting is enabled by default in Django 4.2 and removed entirely in Django 5.2, it is safe to remove without causing any issues in production.
P.S. As @irtazaakram shared this URL, there is no instance of USE_L10N = False
in Open edX, so removing it aligns with the existing usage across the platform.
7fe1cd5
to
95898f7
Compare
@feanil please review. |
The older version was using full requirements paths in its comments which is not usefule. Also update tox.ini to run tests on Django 5.2 and drop testing on 5.1
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #257 +/- ##
=============================
=============================
☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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:
ci
andtox
filesdjango-upgrade
to apply necessary syntax updates for Django 5.2.tox
command and resolved the warningdjango-upgrade usage:
I ran command
git ls-files -z -- '*.py' | xargs -0r django-upgrade --target-version 5.2