Introduction to Django

Type:
Tutorial
Audience level:
Novice
Category:
Web Frameworks
March 7th 9 a.m. – 12:20 p.m.

Description

The Django framework is a fast, flexible, easy to learn, and easy to use framework for designing and deploying web sites and services using Python. In this session, we'll cover the fundamentals of development with Django, generate a Django data model, and put together a simple web site using the framework.

Abstract

Detailed Tutorial Outline

  • Django Overview and Basic Introduction
  • Downloading & Installing Django
  • Creating a new project
  • Choosing a database
  • Creating a new application
  • Installing & Using Django contrib applications
  • Overview of Django flow (i.e., URLconf expression, view function, HTTPResponse object, etc.)
  • Generating Simple Django Views
  • Configuring a URLConf for basic views
  • Creating Django Templates (template syntax, common filters and tags, loops, etc)
  • Creating & using Template Context objects
  • Introduction to Django Models
  • Defining basic Django models
  • Understanding basic model fields & options
  • Generating & Reviewing Model SQL
  • Adding data to a model
  • Simple data retrieval using models
  • Working with QuerySets (filters, slicing, ordering, common methods)
  • Overview of Q objects)
  • Using the Admin interface
  • Using Generic views
  • Access control with sessions & users