Code examples for "Lightweight Django", by Julia Elman and Mark Lavin.
Branch: master
Clone or download
Julia Elman
Latest commit ff6b193 Dec 30, 2014
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Adding .gitignore file. Oct 20, 2014
README.rst Updating README file to add thinks to the each chapters example code,… Dec 30, 2014


Lightweight Django Code Examples

This repository contains all the code from the book, Lightweight Django by Julia Elman and Mark Lavin.

Using These Examples

Each example has been separated out into different branches that correspond to their chapter. Below you will find links to each chapters example code:

Chapter One, The World's Smallest Django Project

Chapter Two, Stateless Web Application

Chapter Three, Building a Static Site Generator

Chapter Four, Build a REST API

Chapter Five, Client-Side Django with Backbone.js

Chapter Six, Single Page Web Application

Chapter Seven, Real-Time Django

Chapter Eight, Communication Between Django and Tornado

Terms & Conditions

These code examples are excerpted from Lightweight Django by Julia Elman and Mark Lavin published by O’Reilly Media, Inc. (ISBN 9781491945940) which you can purchase here: You may use these code examples in your programs and documentation. You do not need to contact O'Reilly for permission unless you’re reproducing a significant portion of the code. For example, writing a program that uses several chunks of this example code does not require permission. Selling or distributing a set of examples from O'Reilly books does require permission. Answering a question by citing the book and quoting example code does not require permission. Incorporating a significant amount of this example code into your product’s documentation does require permission. We appreciate, but do not require, attribution. An attribution usually includes the title, author, publisher, and ISBN. For example: “Lightweight Django by Julia Elman and Mark Lavin (O’Reilly). Copyright 2014 Julia Elman and Mark Lavin. 978-1-4919-4594-0.”

If you feel your use of these code examples falls outside fair use or the permission given here, feel free to contact O'Reilly at