Blog

Showing 1 to 5 of 8 blog posts tagged with "database".

October 2, 2013
by Mark Lavin
0 comments

Skipping Test DB Creation

We are always looking for ways to make our tests run faster. That means writing tests which don't preform I/O (DB reads/writes, disk reads/writes) when possible. Django has a collection of TestCase subclasses for different use cases. The common TestCase handles the fixture loading and the ...

Continue reading →

March 12, 2011
by Tobias McNulty
0 comments

New Job Posting: Linux Systems Administrator with Python/Django experience

I'm delighted to announce that we've just published another job posting for a Linux Systems Administrator at Caktus.  The position will involve maintaining existing Linux servers, designing and building highly-scalable deployments, and assistance with Django deployment and development as time permits.  This is a full-time position, with benefits ...

Continue reading →

September 28, 2009
by Colin Copeland
0 comments

Custom JOINs with Django's query.join()

Django's ORM is great. It handles simple to fairly complex queries right out the box without having to write any SQL. If you need a complicated query, Django's lets you use .extra(), and you can always fallback to raw SQL if need be, but then you lose the ...

Continue reading →

August 14, 2009
by Tobias McNulty
0 comments

Creating recursive, symmetrical many-to-many relationships in Django

In Django, a recursive many-to-many relationship is a ManyToManyField that points to the same model in which it's defined ('self'). A symmetrical relationship is one in where, when a.contacts = [b], a is in b.contacts.

In changeset 8136, support for through models was added to the Django core ...

Continue reading →

March 27, 2009
by Tobias McNulty
0 comments

Migrating from django-photologue 1.x to 2.x

We're in the process of updating a web app for a client that was built last year about this time using Django and Photologue. Needless to say, there have been a lot of changes to both over the past year!

We were somewhat dismayed to find no easy upgrade ...

Continue reading →

Newer | Older