setup django project 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: create new django project

django-admin startproject mysite

Example 4: how to start a new django project

...\> django-admin startproject project_name

Example 5: django doc poll app

$ python manage.py runserver
Linux: python3 manage.py runserver

Example 6: how to create django project

$ python manage.py runserver 8080