django python app code example

Example 1: quick start django

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

Example 2: django app

How to create Django app
--------------------------
Project
> pip install Django
> django-admin startproject config .
> python manage.py runserver
http://127.0.0.1:8000/

App
> python manage.py startapp adminapp

Example 3: django

# Start a Project.
django-admin startproject <project name>

# cd into <project name>

# Create the application
python manage.py startapp <app name>

# Start using the files.

Tags:

Misc Example