run django server code example

Example 1: how to start a django project

django-admin startproject project_name

Example 2: starting server in django

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

Example 3: django create app command

python manage.py startapp app_name

Example 4: run django app locally

python manage.py runserver
or
python3 manage.py runserver

Example 5: start new app in django

$ python manage.py startapp app_name

Example 6: run django server

python3 manage.py runserver
or
python manage.py runserver