[Django]-Access Django Test Database

0👍

You don’t need to access the test database directly. It will be used by default and you don’t need to worry about it.

By default for sqlite3 backend will be used in-memory database, with the name like this file:memorydb_default?mode=memory&cache=shared,
you can examine the settings while tests are running via:

from django.conf import settings
print(settings.DATABASES)

Leave a comment