Selasa, 14 April 2015

Django test error: 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.

One day ago, I wanted to test my app using django test module

then I got an error says:
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.

Since I'm using mac, the error is finally fixed after I added:
SPATIALITE_LIBRARY_PATH = '/usr/local/lib/mod_spatialite.dylib'
in my test_settings.py

Thanks

Tidak ada komentar:

Posting Komentar