我使用 python 2.7、django 1.4、mapnik、tilecache 和 postgis 开发了一个 geodjango 应用程序,在 ubuntu 12.04 中启用了 postgresql。完成开发后,我在 RHEL 6 中安装了相同的应用程序,但使用 geodjango API 的 postgis 查询不起作用。查询是
the_geom 是另一个表中的几何值
placeDet = MyModel.objects.filter(thegeom__dwithin=(the_geom, 250)).distance(the_geom).order_by('distance')
并在异常中将错误显示为,
“NoneType”对象没有属性“组”
请帮我解决这个问题!