HackerTrans
TopNewTrendsCommentsPastAskShowJobs

sarahboyce

no profile record

Submissions

Upgrade your Django project fast with Django-upgrade [video]

youtube.com
1 points·by sarahboyce·3 ปีที่แล้ว·2 comments

Django 5.0

djangoproject.com
554 points·by sarahboyce·3 ปีที่แล้ว·233 comments

comments

sarahboyce
·3 ปีที่แล้ว·discuss
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
·3 ปีที่แล้ว·discuss
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
·3 ปีที่แล้ว·discuss
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...