I am clear on the question but if you are asking how to upgrade Django then in your virtual environment run pip sudo pip install --upgrade django==3.2
I am using a library django-upgrade to convert the code from django 1.11 to django 3.24
the command is like

django-upgrade --target-version 3.2 example/core/models.py

I want to know that how can I run this command so that it runs on whole django project.
how to run a django-upgrade command to whole django project?