Fix docs build

With the updated docs build job, doc building is failing since
DJANGO_SETTINGS_MODULE is not set. Define it properly.

Change-Id: Idc43f59bf6d04705a30c02fd316f50706aacd4ef
This commit is contained in:
Andreas Jaeger 2018-01-03 11:31:05 +01:00
parent 65f0af6887
commit a368c4cdf6
1 changed files with 3 additions and 0 deletions

View File

@ -20,6 +20,9 @@ import django
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
ROOT = os.path.abspath(os.path.join(BASE_DIR, "..", ".."))
# Needs to be set for building documents without tox
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ironic_ui.test.settings')
sys.path.insert(0, ROOT)
sys.path.insert(0, os.path.abspath('../..'))