Your database must support spatial queries, see the GeoDjango documentation for details and setup instructions.