From d18a71b0f236b877bca172a7fcd69b8ccbdb2551 Mon Sep 17 00:00:00 2001 From: Phill Zarfos Date: Tue, 9 Jul 2024 07:11:08 -0400 Subject: [PATCH] Added import to database documentation sample code --- docs/database.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/database.rst b/docs/database.rst index ae3d9153..6d2a4363 100644 --- a/docs/database.rst +++ b/docs/database.rst @@ -370,6 +370,8 @@ Put this into ``conftest.py``:: @pytest.fixture(scope='session') def django_db_setup(): + from django.conf import settings + settings.DATABASES['default'] = { 'ENGINE': 'django.db.backends.mysql', 'HOST': 'db.example.com',