Django History Tables

Source article: Django History Tables I’ve uploaded a new version of django-history-tables [1] to the mercurial repository. It now should run on Django 1.0 + 1.1 and finally supports (although basically) the Admin interface. For those that don’t know django-history-tables (guessing that’s 99.9% of everybody reading this), it is a pluggable Django application to create […]

Django patterns, part 2: efficient reverse lookups

Source article: Django patterns, part 2: efficient reverse lookups One of the main sources of unnecessary database queries in Django applications is reverse relations. By default, Django doesn’t do anything to follow relations across models. This means that unless you’re careful, any relationship can lead to extra hits on the database. For instance, assuming MyModel […]

Django patterns, part 2: efficient reverse lookups

Source article: Django patterns, part 2: efficient reverse lookups One of the main sources of unnecessary database queries in Django applications is reverse relations. By default, Django doesn’t do anything to follow relations across models. This means that unless you’re careful, any relationship can lead to extra hits on the database. For instance, assuming MyModel […]