我試圖讓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.
謝謝..