Home > django-buildout

django-buildout

Django-buildout is a project mainly written in Python, based on the View license.

An empty start of a django project using buildout

  1. Download the source

  2. Run python bootstrap.py -d Note:

    • The -d command tells bootstrap to use distribute, easy_install's successor
    • If you want to run your project with a different version of python than your default, specify that when you run the bootstrap command. IE: python2.4 bootstrap.py -d
  3. Run bin/buildout Note: This will get all your project's dependencies listed in your setup.py file.

Just like that, you're up and running and ready to develop and application using django and buildout. run bin/manage.py runserver, point your browser to localhost:8000 and you'll see django's "It worked!" page.

In the django tutorials where you see ./manage.py [command] just replace it with bin/manage.py [command].

The benefit of using buildout is that it allows you to keep your development environment controlled so anyone can pick up your project and have all the dependencies. Plus, it gives you the added flexibility of using different versions of different modules for various projects instead of having only one installed on your computer.