Skip to content

Commit

Permalink
Do not run django.setup() when building docs (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarPersson authored Jul 2, 2019
1 parent 9e67dd0 commit e8790bc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ESSArch_TP/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
# documentation root, use os.path.abspath to make it absolute, like shown here.
# sys.path.insert(0, os.path.abspath('.'))

import django
import inspect
import os
import sys
Expand All @@ -53,8 +52,6 @@

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

django.setup()

# Stop Django from executing DB queries
from django.db.models.query import QuerySet # noqa
QuerySet.__repr__ = lambda self: self.__class__.__name__
Expand Down

0 comments on commit e8790bc

Please sign in to comment.