Skip to content

Commit 9704fdc

Browse files
authored
Do not run django.setup() when building docs (#118)
1 parent cca4439 commit 9704fdc

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

ESSArch_TA/docs/conf.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
# documentation root, use os.path.abspath to make it absolute, like shown here.
4242
# sys.path.insert(0, os.path.abspath('.'))
4343

44-
import django
4544
import inspect
4645
import os
4746
import sys
@@ -53,8 +52,6 @@
5352

5453
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings')
5554

56-
django.setup()
57-
5855
# Stop Django from executing DB queries
5956
from django.db.models.query import QuerySet # noqa
6057
QuerySet.__repr__ = lambda self: self.__class__.__name__

0 commit comments

Comments
 (0)