Make or move to directory where you want to set up your virtual environment for Django
$mkdirDev$cdDev$mkdirtryDjango$cdtryDjango$virtualenv-ppython3.#This will create a virtual environment$sourcebin/activate#This command will get you into a virtual environment$deactivate#This command will get you out of a virtual environment
3 different ways to create virtual environments
#After move in to a directory you want to create virtual environment$virtualenvvenv#Create virtual environment named 'venv'$virtualenvvenv2-ppython3#Create virtual environment with specific python version you want$virtualenvven3-p#Create virtual environment with python version installed in pc
Install Django on the virtual environment
$pipinstalldjango==2.0.7
Create a black Django project
$django-admin$django-adminstartprojecttrydjango.#This command creates a new project named trydjango$pythonmanage.pyrunserver>>>Startingdevelopmentserverathttp://~~#This is your URL address you can debug on