40👍
✅
Configure memory database:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}
and put the code you’ve linked to as a startup script (please refer to Execute code when Django starts ONCE only?).
Source:stackexchange.com