how to run python django project code example

Example 1: how to start a django project

django-admin startproject project_name

Example 2: run django app locally

python manage.py runserver
or
python3 manage.py runserver

Example 3: create new django project

django-admin startproject mysite

Example 4: run django server

python3 manage.py runserver
or
python manage.py runserver

Example 5: create new django app

python manage.py startapp app_name

Example 6: create django project

$ python manage.py startapp polls