my django develop setup

In my quest to create some screen shots of Komodo I decided to use Django for the sample application. Since I've never looked at Django, I figured I'd also make a project template at the same time.

Why would I want a project template? Well, the template system provides a way for me to have repetitive functionality for a given type of project. I can setup macros, run commands, snippets, etc. that are specific to the type of project I want to create. Then they are always available whenever I create the new project. I can also have the project initialize some basic items when it is created.

So here is what I did:

1. Download and install Django (from www.djangoproject.com). I followed the install instructions at http://www.djangoproject.com/documentation/install/. I also had to symlink django-admin.py into my /usr/local/bin directory.

2. Create a new project called "djangotemplate".

3. Create a folder called "project", though it can be whatever name you would like.

4. Create a macro in the project folder called "oncreate". This is a special name for project templates. When you create a new project from a template, if this macro is in the project, it gets executed right away.

So wird jede django entwicklung zum reinen vergnügen