Contents

Fast Development Setup for Django

This project is a template for fast creation and development of Django websites.
It contains all the tools that I know that allow fast coding, debugging and
quality control.

When you add packages to buildout.cfg to be used in your project, any
collaborator will get them just by running buildout script. No need to compare
packages setups and versions, no need to use virtualenv.

Usage

cd yourproject
make run

Changed packages in buildout.cfg? Updated django.po in locales? Just stop the
server and do make run again. The make shell_plus command is also
smart and can re-build bin/django should you change the dependencies in
buildout.cfg.

@mixin border-radius($radii)-webkit-border-radius:$radii-moz-border-radius:$radii-ms-border-radius:$radii-o-border-radius:$radiiborder-radius:$radii.buttonbackground:#88f+border-radius(1.5em)// will expand in rules for all vendors

A not included feature: it can parse script tags in the page, open the
JS files, minify them and pack into one single file.

CoffeeScript

If you want to use CoffeeScript, do the following:

edit Makefile and uncomment the line run: bin/coffee

set USE_COFFEE_SCRIPT = True in settings.py

if you use Ubuntu, make sure curl is installed (by default it is not):

sudo apt-get install curl

You DON'T NEEDNode.js, nor npm
for this project to run CoffeeScript. Buildout will install them
automatically. This makes it easier to deploy in web hosting.

WSGI

In the bin folder, <settings name>.wsgi script will be created. (django and
prod, as in buildout.cfg.) Connect your Apache or Nginx to this wsgi file.

To update WSGI script (after adding packages to buildout.cfg), just run
make bin/django.