├── .gitignore └── README.rst /.gitignore: -------------------------------------------------------------------------------- 1 | *.py[co] 2 | *.DS_Store 3 | _build/ -------------------------------------------------------------------------------- /README.rst: -------------------------------------------------------------------------------- 1 | Lightweight Django Code Examples 2 | ================================ 3 | 4 | This repository contains all the code from the book, `Lightweight Django `_ 5 | by `Julia Elman `_ and `Mark Lavin `_. 6 | 7 | 8 | Using These Examples 9 | -------------------------------- 10 | 11 | Each example has been separated out into different branches that correspond to their chapter. Below you will find links to each chapters example code: 12 | 13 | `Chapter One, The World's Smallest Django Project `_ 14 | ################################################################################################################### 15 | 16 | `Chapter Two, Stateless Web Application `_ 17 | ######################################################################################################## 18 | 19 | `Chapter Three, Building a Static Site Generator `_ 20 | ################################################################################################################# 21 | 22 | `Chapter Four, Build a REST API `_ 23 | ################################################################################################ 24 | 25 | `Chapter Five, Client-Side Django with Backbone.js `_ 26 | ################################################################################################################### 27 | 28 | `Chapter Six, Single Page Web Application `_ 29 | ########################################################################################################## 30 | 31 | `Chapter Seven, Real-Time Django `_ 32 | ################################################################################################# 33 | 34 | `Chapter Eight, Communication Between Django and Tornado `_ 35 | ######################################################################################################################### 36 | 37 | 38 | Terms & Conditions 39 | -------------------------------- 40 | 41 | 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: http://shop.oreilly.com/product/0636920032502.do. 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. 42 | 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.” 43 | 44 | 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 `permissions@oreilly.com `_ --------------------------------------------------------------------------------