for Win7:**
--------------------------
pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org <package_name>
pip install django
django-admin startproject sampleapp
Create a virtual environment $ python3 -m venv /path/to/new/virtual/env
Install packages using $pip install <package> command
Save all the packages in the file with $pip freeze > requirements.txt. Keep in mind that in this case, requirements.txt file will list all packages that have been installed in virtual environment, regardless of where they came from
Install project dependencies
When if you’re going to share the project with the rest of the world you will need to install dependencies by running $pip install -r requirements.txt
virtualenv -p python3 .
source bin/activate
python manage.py migrate
python manage.py runserver
python manage.py createsuperuser
python manage.py startapp AppName
python manage.py makemigrations
python manage.py migrate
python manage.py shell
# from products.models import Product
# Product.objects.all()
Product.objects.create(title="new product" , descirption = "another one " ...... )