tutorial django code example

Example 1: how to start a django project

django-admin startproject project_name

Example 2: django create app

python manage.py startapp # name of the app

Example 3: start new app in django

$ python manage.py startapp app_name

Example 4: how to start a new django project

...\> django-admin startproject project_name

Example 5: quick start django

pip install Django
django-admin startproject mysite
cd mysite
python manage.py runserver

Example 6: create django project

$ django-admin startproject mysite