mirror of
https://github.com/nsupdate-info/nsupdate.info.git
synced 2026-04-25 08:35:56 +03:00
[GH-ISSUE #504] Update dependencies (django 2.2 > 4.2) #372
Labels
No labels
bug
bug
duplicate
easy
easy
enhancement
enhancement
invalid
needs help
pull-request
scalability
security
task
urgent
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nsupdate.info-nsupdate-info#372
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nougad on GitHub (Mar 12, 2023).
Original GitHub issue: https://github.com/nsupdate-info/nsupdate.info/issues/504
This repository requires django 2.2 which is out of security support since 2022-04-01 ( https://endoflife.date/django )
I updated the project to latest django 4.1 together with some other smaller cleanups: https://scm.indeedgeek.de/flo/nsupdate.info/commits/branch/master
The project here seems not very active and I'm not sure if it's worth creating PRs for all changes. Especially since I did some modifications to make upgrades easier on my side (Pipfile, pylint, testing in docker, ..) which might not be welcome. But I wanted to give folks a heads-up in case there is demand in taking over my work.
I'm not very familiar with django but run the updated version since 2 months with my fairly small production workload without problems.
@ThomasWaldmann commented on GitHub (Mar 12, 2023):
Thanks for working on upgrading the stuff, that would be a really good contribution if you could make a PR from that.
I have looked through the changes, some comments:
What's especially interesting for me is whether / how you tested the upgrade from the previous code / previous databases (sqlite3).
On
https://nsupdate.info/there are quite a lot of users, so upgrading from the current database / current code to the new one should not cause too big problems.@nougad commented on GitHub (Mar 18, 2023):
requirements.txtdoes not track transitive dependencies. Pipenv helps with this and also provides some nice wrapper so you don't need to fiddle with virtualenv. I include the pipenv in the setup but I don't want to force my tools on you so if you don't like it remove it afterwards. There is also a mode to keep both (Pipenv for development and requirements.txt for deployments) by generating requirements.txt out of the Pipfile (mentioned in the DEVELOPMENT.md file).pyproject-buildis packaging the wheel files for publish with twine to the python package registry. If you have other tooling that's fine but since nothing was documented I used what was available.scm.indeedgeek.de/flo/nsupdate.info@5593eec2d8I created the PR at https://github.com/nsupdate-info/nsupdate.info/pull/505
@ThomasWaldmann commented on GitHub (Mar 18, 2023):
Thanks for the PR!
@ThomasWaldmann commented on GitHub (Mar 18, 2023):
@elnappo could you review this? -> #505
@ThomasWaldmann commented on GitHub (Apr 12, 2023):
Half of that upgrade is already live via #516.
@ThomasWaldmann commented on GitHub (Apr 13, 2023):
Other half is WIP, see #517.
@hensing commented on GitHub (May 2, 2023):
Thank you @nougad for the initiative and @ThomasWaldmann and @elnappo for the review <3 was looking forward to this but was too novice with django myself ...
@ThomasWaldmann commented on GitHub (Jul 11, 2023):
Try 2: see #529
@ThomasWaldmann commented on GitHub (Jul 11, 2023):
OK, Django 4.2.x is life at the production site, so guess we can close this.