- install pip3
wget https://bootstrap.pypa.io/get-pip.py
sudo python3 get-pip.py
- Install a Python Virtual Environment
sudo pip3 install virtualenv
- virtual environment
virtualenv my_project ; my_project is one of your dir.
cd my_project
. /bin/activate
- Installing Django
pip3 install django==1.11.5
check,
python -m django --version
- start Django
django-admin startproject mysite ; create a project
python manage.py migrate ; Setting Up a Database
python manage.py runserver ; runing project