python run 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: run django app locally

python manage.py runserver
or
python3 manage.py runserver

Example 4: start django project

django-admin startproject <//name of project\\>

Example 5: run django app

$ python manage.py runserver

Example 6: django make app

...\> django-admin startproject mysite

Tags:

Php Example