Django-efficient is a project mainly written in Python, it's free.
Utilities for efficiently following relationships in Django
404: Not Found