joetyson
6/6/2009 - 1:39 AM

gistfile1.txt

Django: After the Tutorial


Intended Audience

This talk is intended for programmers new to Python but not total beginners.
We assume the programmer is able to set up VCS, databases, and webservers as
needed and is comfortable with these tools. It is helpful, but not necessary,
to be familiar with very basic Django concepts (covered in the Tutorial) and 
the basic install flow for Python packages. The latter half of the presentation
is valid for any Python project.


Abstract

There's a gap between the Django Tutorial and the various documents about
development and deployment. This talk will discuss the general pattern we use
for Django projects, using the Tutorial code as a vehicle for demonstration.

We'll discuss codebase organization (where to put templates, "media" files,
application code), settings management (how to handle different deployment
environments without going crazy), and package creation. We'll talk about how
to use key setuptools directives to fully control the (Python) dependencies
in different deployment roles (including a very simple private "package 
server"). In the course of the discussion, we'll briefly cover virtualenv and 
virtualenvwrapper. Time permitting, we'll give a short introduction to Sphinx 
and talk about where the documentation files go in our package hierarchy.