[Django]-Error when using GeoDjango with SpatiaLite on Ubuntu

5👍

OK, I found the problem myself: I forgot to use models.GeoManager as the default manager. This fixes my problem:

class TestModel(models.Model):
    name = models.CharField(max_length=10)
    location = models.PointField()

    objects = models.GeoManager()

Leave a comment