我想根据距离过滤结果,所以我使用了GeoDjango并在模型中添加了一个字段PointField
:
from django.contrib.gis.db import models
location = models.PointField(u"longitude/latitude",
geography=True,
blank=True,
null=True)
但是,当我试图启动索引(我的网站)时,我的浏览器出现了这个错误
^{pr2}$在python中:
'The pysqlite library does not support C extension loading. '
django.core.exceptions.ImproperlyConfigured: The pysqlite library does not support C extension loading. Both SQLite and pysqlite must be configured to allow the loading of extensions to use SpatiaLite.
我正在研制MAC电脑。在
目前没有回答
相关问题 更多 >
编程相关推荐