how to install django in virtual environment in ubuntu code example

Example 1: how to install django in virtual environment in ubuntu

source my_env/bin/activate

Example 2: how to install django in virtual environment in ubuntu

python manage.py migrate

Example 3: how to install django in virtual environment in ubuntu

django-admin startproject myDjangoProject .

Example 4: how to install django in virtual environment in ubuntu

django-admin --version

Example 5: how to install django in virtual environment in ubuntu

pip install django

Example 6: how to install django in virtual environment in ubuntu

python3.8 -m venv my_env