[Django]-Django in-memory model, not for tests

5👍

You have to use the special file name :memory: to instruct sqlite to use an in memory database.

DATABASES = {
  'default': {
    'ENGINE': 'django.db.backends.sqlite3',
    'NAME': ':memory:',
  }
}

should do the trick.

Leave a comment