MikeTeo.net

A Software Technologist's Blog (Wanna Email Me?)

Archive for the ‘Django’ Category

It’s nice to know that Django finally has a proper web site (djangosites.org) for Django lovers to showcase their Django-powered web sites. I hope that in near future, Django can have a web site for developers to share their Django app modules or to share their pointers at how to use this nice Python web application framework for more complex applications.

Django Model Reuse

Aug-21-2007 By miketeo

I have several models like ”Player”, ”Member” and ”User” which have similar attributes like ”name”, ”email”, ”address”, etc. Being an object-oriented developer, I am inclined to put all the common attributes and properties under a base model like ”BaseUser” and have the other models subclass this base model. However, Django 0.96 is not supporting model inheritance yet, so I have decided to poke into the code to see if I can implement my own workaround.
Read the rest of this entry »