Posts tagged django, orm in 2007
Filters: Year: 2007 × django × orm × Sorted by date
Django Evolution. Really smart take on the problem of updating database tables to reflect changes to Django models. Code that automatically modifies your database tables can be pretty scary, but Evolution seems to hit the right balance.
Using the extra() QuerySet modifier in Django for WeGoEat. You can use select() on a QuerySet to obtain extra values using subqueries.
tranquil. Inspired take on the Django ORM to SQLAlchemy problem: lets you define your models with the Django ORM but use SQLAlchemy to run queries against them.
DbMigration—a schema migration tool for Django. Nice and simple tool for adding schema migrations to a Django application.
django-sphinx (via) More code from Curse Gaming; this time a really nice API for adding Sphinx full-text search to a Django model.
AuditTrail. Add change tracking and history to a Django model with a single line of code. Doesn’t handle relationships though, which is definitely the toughest part of this problem.
Finding Lookup Items that Are Not Used. How to do left outer joins (and other custom SQL) using the Django ORM.
A nice example of when to use reduce in python. As a shortcut for assembling a large OR query using the Django ORM.
Undelete in Django. Inspired by the conversation about undo the other day, Nathan Ostgard created a simple solution based around custom managers and a trashed_at model field.