-
Notifications
You must be signed in to change notification settings - Fork 138
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
Update Django to latest 4.2 LTS #2750 #2751
Update Django to latest 4.2 LTS #2750 #2751
Conversation
Update Django from 3.2.23 to 4.2.7 via `poetry update` and pyproject.toml. ## Includes: - Move from django.utils.timezone utc to datetime.timezone.utc: RemovedInDjango50Warning - Remove to-be-deprecated USE_L10N setting, prior setting now enforced: RemovedInDjango50Warning - Add comment re Django 5.0 change in default USE_TZ value: Future default already adopted. - Remove non-existent/unused STATICFILES_DIRS entry. - Adopt new-in-Django-4.2 STORAGES setting to replace STATICFILES_STORAGE setting.
We have a slight issue here still regarding our static file arrangements/changes, looking into this now. |
In our build.sh we have the following: Lines 47 to 56 in e7edab7
which is where we import our rockstor-jslibs, this is then available via the indicated settings.py entry (removed in error/haste in this PR to satisfy a warning that does not have this dynamic import/ build-time context. |
Preparing a follow-up commit to prove this over-step before representing what we have here. |
- Comment STATICFILES_DIRS setting re build.sh & rockstor-jslibs.
We have a new sensitivity re collect static:
Initially observed in rpmbuild environment and now reproduced in a regular shell. |
In rockstor-jslibs PR: rockstor/rockstor-jslibs#37 We updated our socket.io.js and did not include the previously optional .map
would resolve this new sensitivity. In reproducer development setup, after the above noted build.sh (collectstatic) failure, we have a re-run working as intended once we wget the matching socket.io.min.js.map file:
|
The last comments findings re collectstatic failure on missing .map file looks to be related to the following new sensitivity in Django: https://code.djangoproject.com/ticket/33353 |
After merging the referenced off-shoot PR Add socket.io.min.js.map file #39 to the matching testing branch in rockstor-jslibs, we now have a successful rpmbuild, and consequent install/services start with this PR. |
Resulting fresh install from the resulting rpm of this PR looks to be behaving as expected. I'll move to squashing and representing. |
Update Django from 3.2.23 to 4.2.7 via
poetry update
and pyproject.toml.Includes:
Remove non-existent/unused STATICFILES_DIRS entry.Fixes #2750