django-libsql icon indicating copy to clipboard operation
django-libsql copied to clipboard

django.core.exceptions.ImproperlyConfigured

Open yorjanrafa opened this issue 1 year ago • 2 comments

Using the example of repository.

django.core.exceptions.ImproperlyConfigured: 'libsql.db.backends.sqlite3' isn't an available database backend or couldn't be imported. Check the above exception. To use one of the built-in backends, use 'django.db.backends.XXX', where XXX is one of: 'mysql', 'oracle', 'postgresql', 'sqlite3'

yorjanrafa avatar Oct 30 '24 19:10 yorjanrafa

it suggests you haven't pip installed it properly?

what steps have you taken so far?

aaronkazah avatar Nov 01 '24 12:11 aaronkazah

I just followed the tutorial that is in the repository

pip install django-libsql

settings.py DATABASES = { "default": { "ENGINE": "libsql.db.backends.sqlite3", "NAME": "libsql://${your-db-name}.turso.io?authToken=${your-auth-token}", } } obviously with my access credentials

yorjanrafa avatar Nov 05 '24 18:11 yorjanrafa