how to run django server code example

Example 1: starting server in django

# to start a django server cd to dir with manage.py file and type following
python manage.py runserver

Example 2: django create app

python manage.py startapp # name of the app

Example 3: run django app locally

python manage.py runserver
or
python3 manage.py runserver

Example 4: create new django project

django-admin startproject mysite

Example 5: how to start a django project in terminal

django-admin startproject project_name

Example 6: run django server

python3 manage.py runserver
or
python manage.py runserver