Upgrade from 4.2.8 to 5.0

I have a fairly medium sized application in Django 4.2.8 which is not yet deployed to production and was wondering if upgrading to 5.0 would break anything ?

This is my requirements.txt :

wheel
django==4.2.8
mysqlclient==2.1.1
redis==4.5.4
python-environ==0.4.54
django-environ=0.10.0
django-redis==5.3.0
django-compressor==4.3.1
django-storages==1.13.2
django-storages[azure]
inertia-django==0.5.3
django-htmx==1.17.0
djangorestframework==3.14.0
markdown==3.4.2
django-filter
boto3==1.28.18
pandas==2.0.3
requests
django-cors-headers
daphne
channels
azure-mgmt-resource
azure-identity
git+https://github.com/azure-samples/ms-identity-python-utilities@main
1 Like

The only way to be sure is to review the release notes, and check your code to see if you’re doing something that is no longer valid.

You can also run something like python -W all manage.py check --deploy to get code that may be flagged as being deprecated - and other warnings you may wish to address. However, this isn’t necessarily going to catch everything. Don’t rely upon this alone, you should still review the release notes.

1 Like