reset_db error on db engine
Author: patvdleerCreated May 21, 2026Updated May 21, 2026
When using django.contrib.gis.db.backends.spatialite the command manage.py reset_db --noinput doesn't work giving me the following: CommandError: Unknown database engine django.contrib.gis.db.backends.spatialite.
The engine does work since reset_db seems to be the only command not working out of bunch of commands ran with a Makefile;
reset: ## Reset database and caches
python manage.py reset_db --noinput
python manage.py clear_cache
python manage.py clean_pyc
python manage.py migrate
make import-default-data
make import-test-data
python manage.py createcachetable
python manage.py check
python manage.py collectstatic --no-input -c
import-default-data: ## Import default fixtures
for i in `ls hmp/fixtures/*.json | sort -V | grep -v test`; do python manage.py loaddata $$i; done;
import-test-data: ## Import test fixtures
for i in `ls hmp/fixtures/*.json | sort -V | grep test`; do python manage.py loaddata $$i; done;Source: django-extensions/django-extensions