I use Postgres for production and development, but I\'d like to use sqlite to run some tests. I don\'t see an easy way to configure one engine for tests and another for dev
I would suggest using -k or --keepdb -Flag when running manage.py test and the following setting:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'DBNAME',
'USER': 'DBNAME',
'PASSWORD': 'DBNAME',
'HOST': 'localhost',
'PORT': '',
'TEST': {
'NAME': 'DBNAME_test',
}
},
}
In my setup with Django==1.11 it works like a charm. Good luck for yours!