Did you solve this problem?
24 Mayıs 2017 Çarşamba 09:27:22 UTC+3 tarihinde Antonis Christofides yazdı:
>
> Hi,
>
> This is the error message I get when I run "./manage.py test" or
> "./manage.py migrate":
>
> File
> "/home/anthony/nosync/virtualenvs/enhydris3.6/lib/python3.6/site-packages/django/contrib/gis/db/backends/spatialite/base.py",
>
> line 53, in get_new_connection
> '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.
>
> However, something isn't right. AFAIU pysqlite isn't supported on Python
> 3, therefore something else is happening. This is a Python 3.6 that I
> installed on Debian stretch. These are the relevant settings:
>
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.contrib.gis.db.backends.spatialite',
> 'NAME': 'enhydris.db',
> }
> }
> if os.path.exists('/usr/lib/x86_64-linux-gnu/mod_spatialite.so'):
> # This is necessary for spatialite>=4.2
> SPATIALITE_LIBRARY_PATH = 'mod_spatialite'
>
> Thanks!
>
> A.
>
> --
> Antonis Christofideshttp://djangodeployment.com
>
>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/60ba14ea-0980-4e7f-95cb-eb2cbabd86e7%40googlegroups.com.