我试图让Django的SQLite3接受空间查询。 This tutorial建议我将它添加到设置:“无法找到SpatiaLite库。” Django
SPATIALITE_LIBRARY_PATH = 'mod_spatialite'
将会产生这个错误:
django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension "mod_spatialite" because: The specified module could not be found.
我也试着这样做:
SPATIALITE_LIBRARY_PATH = r'C:\\Program Files (x86)\\Spatialite\\mod_spatialite-4.3.0a-win-x86\\mod_spatialite-4.3.0a-win-x86\\mod_spatialite.dll'
如果我不加这个变量我我在迁移时收到此错误:
django.core.exceptions.ImproperlyConfigured: Unable to locate the SpatiaLite library. Make sure it is in your library path, or set SPATIALITE_LIBRARY_PATH in your settings.
谢谢..