To install pip for Python 3 on Ubuntu 20.04 run the following commands as root or sudo user in your terminal:
sudo apt update
sudo apt install python3-pip
When the installation is complete, verify the installation by checking the pip version:
pip3 --version
sudo apt install python3-venv
Before we do anything else we'll create a new virtual environment, using venv. This will make sure our package configuration is kept nicely isolated from any other projects we're working on.
python3 -m venv env
source env/bin/activate
deactivate
pip freeze
pip install django
pip install djangorestframework
django-admin startproject PROJECTNAME
Run Server (http://127.0.0.1:8000) CTRL+C to stop
python manage.py runserver
python manage.py start app APPNAME
python manage.py makemigrations
python manage.py migrate
python manage.py collectstatic