background preloader

Python

Facebook Twitter

Friendfeed

Tipfy - Project Hosting on Google Code. Django guys let us understand python *args and **kwargs : Dpeepu. How to Write Reusable Apps for Pinax and Django | Code Spatter. Pinax is a collection of reusable django apps that brings together features that are common to many websites. It allows developers to focus on what makes their site unique. Here is an example of adding your own functionality to Pinax.

It will also be an example of writing a reusable app since every individual app currently in Pinax can be used separately. Also, I’ve bundled the example files into a google code project. My example will be to create a list of books and allow them to be tied to any object using Django’s ContentType framework. The books could be recommended reading for the members of a tribe (pinax group), a class, or anything in your project and will include title, description, and tags (requires django-tagging).

In another post I’ve shown how to create template tags to make it easy to show the list of books and a form to add a book. Starting the App Create a folder in the apps directory or any place that is on the python path (ex. Models.py forms.py views.py urls.py. N800 as Django Development Server. Installing django on nokia maemo n810.