- install python3 and pip3
- then install virtualenv
- create virtualenv and activate the virtualenv
- install django here
pip3 install virtualenv
install virtualenvvirtualenv venv
create virtualenv called venv- default this activated usign
deactivated
to deactive venv - active again write in ubuntu
source venv/bin/activate
or WindowsSource venv/Scripts/activate
- create djagno project using
django startproject nameofproject
- going to project using
cd nameofproject
and create django application usingdjango startapp nameofapp
orpython3 manage.py startapp nameofapp
- run makemigration and migrate using
python3 manage.py makemigrations
andpython3 manage.py migrate
- run server using
python3 manage.py runserver
if you use widnows then no need to write python3 in windows only write python