- install python3 and pip3
- then install virtualenv
- create virtualenv and activate the virtualenv
- install django on virtualenv
pip3 install virtualenv
orpip 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 Windowsvenv/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
orpython manage.py startapp nameofapp
- run makemigration and migrate using
python3 manage.py makemigrations
andpython3 manage.py migrate
orpython manage.py makemigrations
andpython manage.py migrate
- run server using
python3 manage.py runserver
orpython manage.py runserver
if you use widnows then no need to write python3 in windows only write python
all python
command use in windows