Follow the steps below.
IMPORTANT: Before upgrading Django, make sure that your Django applications are compatible with the new version.
To upgrade Django, execute the following command:
$ sudo pip install --upgrade Django
If you want a specific version of Django (not the latest one), add the version number as shown below:
$ sudo pip install --upgrade Django==3.0.7