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
Delete USE_L10N
setting if Django version >= 4.0
#161
Comments
USE_L10N
setting if Django version >= 4.0
Yeah we could remove it, but only if it's set to exactly The Please ensure you test, update docs, and add a changelog note. |
There are two changes here. According to the settings page: https://docs.djangoproject.com/en/4.0/ref/settings/#std-setting-USE_L10N
How should we handle this? I imagine:
Or should we just not worry about Django 5.0 yet because it hasn't been released yet? |
I don't see it as the responsibility of django-upgrade to worry about Django will log a deprecation warning for it from version 4.0. If users ignore that all the way through to version 5.0, that's on them. At that point, leaving the single line in their settings file is going to be the least of their problems, and may even help them debug localization problems. |
Sounds great! Just put up the initial PR. I left |
Description
The
USE_L10N
setting is deprecated in Django 4.0: https://docs.djangoproject.com/en/4.0/ref/settings/#std-setting-USE_L10NFigure this would be a good candidate for this project. Happy to work on it if you agree.
The text was updated successfully, but these errors were encountered: