"""Explicit SQLite fallback for unit tests when PostgreSQL is unavailable. Production and the default test command always use PostgreSQL. """ from .settings import * # noqa: F403 DATABASES = {"default": {"ENGINE": "django.db.backends.sqlite3", "NAME": ":memory:"}} SECURE_SSL_REDIRECT = False STORAGES = { "default": {"BACKEND": "django.core.files.storage.FileSystemStorage"}, "staticfiles": {"BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage"}, }