[Django]-Django – in memory sqlite in production

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?).

👤Adrian

Leave a comment