Skip to content

Commit

Permalink
Added import to database documentation sample code
Browse files Browse the repository at this point in the history
  • Loading branch information
pzarfos authored and bluetech committed Sep 2, 2024
1 parent 7263d06 commit d18a71b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/database.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit d18a71b

Please sign in to comment.