Readit News logoReadit News
sarahboyce commented on Upgrade your Django project fast with Django-upgrade [video]   youtube.com/watch?v=JHL8Z... · Posted by u/sarahboyce
sarahboyce · 2 years ago
30% of Django developers upgrade every LTS release[1]. As Django 3.2 runs out of support in April this year[2], it's worth celebrating Adam Johnson's package django-upgrade (https://github.com/adamchainz/django-upgrade) which has a set of fixers to automatically update your Django code to the version of your choice.

Curious if anyone has used 2to3 (https://docs.python.org/3/library/2to3.html) for upgrading Python code and can share their experience with it? Would you recommend?

1. https://lp.jetbrains.com/django-developer-survey-2022/

2. https://www.djangoproject.com/download/#supported-versions

sarahboyce commented on Django 5.0   djangoproject.com/weblog/... · Posted by u/sarahboyce
h4kor · 2 years ago
Sadly I don't use Django anymore at work but it still has a special place in my heart. The ORM model is the best I've ever worked with and any other always feels clunky with sharp edges to cut you when you hold it wrong.

In recent years Django had multiple major releases, I still remember it as being in 1.x forever. Does somebody know what changed within the Django Community that they break backward compatibility more often?

sarahboyce · 2 years ago
The release process is time-based as to roughly every 8 months[1] with X.0, X.1, and X.2 (LTS). This is mostly to communicate which release has long term support.

The deprecation policy[2] is taken very seriously and Django doesn't opt to break things if it can.

Recently there was a very interesting discussion[3] between the Fellows as to whether the version numbering is confusing as this doesn't follow the same pattern as other libraries.

1: https://docs.djangoproject.com/en/dev/internals/release-proc...

2: https://docs.djangoproject.com/en/dev/internals/release-proc...

3: https://fosstodon.org/@carlton/111300877531721385

sarahboyce commented on Django 5.0   djangoproject.com/weblog/... · Posted by u/sarahboyce
sarahboyce · 2 years ago
Release notes: https://docs.djangoproject.com/en/5.0/releases/5.0/

Related Community Resources

* New goodies in Django 5.0 [blog]: https://fly.io/django-beats/new-goodies-in-django-50/

* What's new in Django 5.0 [video]: https://youtu.be/lPl5Q5gv9G8?feature=shared

* Database generated columns⁽¹⁾: Django & SQLite [blog]: https://www.paulox.net/2023/11/07/database-generated-columns...

* Database generated columns⁽²⁾: Django & PostgreSQL [blog]: https://www.paulox.net/2023/11/24/database-generated-columns...

* Building a Bootstrap styled form in vanilla Django [blog]: https://smithdc.uk/blog/2023/bootstrap_form_in_vanilla_djang...

u/sarahboyce

KarmaCake day217December 3, 2023View Original