- libxml-dev, libxslt-dev
- Database of your choice
+ - Java Runtime (without JDK/GUI)
How to install these libraries in Ubuntu:
+nstall these libraries in Ubuntu:
- sudo apt-get install libxslt-dev python-dev
+ sudo apt-get install libxslt-dev python-dev s
All the other packages are bundled in the buildout script.
If you want to use **CoffeeScript**, read section "CoffeeScript" below.
It's a script, assembled by buildout, that connects the project environment
+While developing, you may need to quickly recreate the database from scratch and
+reload fixtures. Fastdev-django has a command for this:
+It will drop the db and run syncdb again.
Installs zc.buildout script.
- - **IPython and django-extensions**
+IPython and django-extensions
A better Python shell with code completion and scripting. The extensions package
adds `shell_plus` command that runs IPython. There's a shortcut for it:
A debugging environment for Python, which looks like the good old QBasic or
Borland IDEs from the '80-s.
import pudb; pudb.set_trace()
- - **django-debug-toolbar**
A toolbar that is embed into pages that shows you the list of rendered templates
and their contexts. Enable its middleware and see a clickable label on the right
An elegant markup language that transforms into HTML. HamlPy implements HAML and
a similar notation for Django template language:
- - **Django Compressor and Sass**
+Django Compressor and Sass
Compressor can be used to transform and compress CSS and JS on the fly. Here it
is used to convert SASS stylesheets in valid CSS. Usage (Haml notation):
A **not included** feature: it can parse `script` tags in the page, open the JS
files, minify them and pack into one single file.
If you want to use CoffeeScript, do the following:
CoffeeScript. Buildout will install them automatically. This makes it easier
to deploy in web hosting.
-To make a WSGI script for Webfaction hosting, run
+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.
-In the project root the `<project name>.wsgi` script will be created. (Project
-name is set in buildout.cfg.)
-Updated packages in buildout.cfg? Just do `make webfaction` again. Make will see
-that Django has to be re-installed with Buildout.
+To update WSGI script (after adding packages to buildout.cfg), just run