Skip to content

Commit d18a71b

Browse files
pzarfosbluetech
authored andcommitted
Added import to database documentation sample code
1 parent 7263d06 commit d18a71b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/database.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,8 @@ Put this into ``conftest.py``::
370370

371371
@pytest.fixture(scope='session')
372372
def django_db_setup():
373+
from django.conf import settings
374+
373375
settings.DATABASES['default'] = {
374376
'ENGINE': 'django.db.backends.mysql',
375377
'HOST': 'db.example.com',

0 commit comments

Comments
 (0)