Hacker News new | ask | show | jobs
by avinassh 1655 days ago
I recently upgraded [0] one of my project [1] to Django v4, from Django v1. The changes from Django 3 to 4 were fairly simple, just one line change in my case. The change log is extremely detailed, it was easy to upgrade. Also, I found a tool called django-upgrade [2] which makes some changes automatically, rest I made manually.

[0] - https://avi.im/blag/2021/rc-day-20/

[1] - https://github.com/avinassh/della

[2] - https://github.com/adamchainz/django-upgrade

1 comments

that's super nice to know -- i need to upgrade a django app from 1.11 to 4 over the next couple of weeks!
If the 1.11 project is in python 3 then it would be a piece of cake. If it's in python 2 then it will need a little more effort to convert to python 3 but but not much really. Django have hasn't changed that much since 1.11!