summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.com>2018-01-03 11:31:05 +0100
committerAndreas Jaeger <aj@suse.com>2018-01-03 11:31:05 +0100
commita368c4cdf67b61b593bbd35cbd3897bdcd7adcd9 (patch)
treedf248810e276b7afa040fd1e55bc6c16a2c4cd09
parent65f0af6887c8a3e8b48a404f3630b6824dcea44a (diff)
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
Notes
Notes (review): Code-Review+2: Sam Betts <sam@code-smash.net> Code-Review+2: Julia Kreger <juliaashleykreger@gmail.com> Workflow+1: Julia Kreger <juliaashleykreger@gmail.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Wed, 03 Jan 2018 13:50:05 +0000 Reviewed-on: https://review.openstack.org/530893 Project: openstack/ironic-ui Branch: refs/heads/master
-rwxr-xr-xdoc/source/conf.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py
index 5665583..f3d8f4f 100755
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -20,6 +20,9 @@ import django
20BASE_DIR = os.path.dirname(os.path.abspath(__file__)) 20BASE_DIR = os.path.dirname(os.path.abspath(__file__))
21ROOT = os.path.abspath(os.path.join(BASE_DIR, "..", "..")) 21ROOT = os.path.abspath(os.path.join(BASE_DIR, "..", ".."))
22 22
23# Needs to be set for building documents without tox
24os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ironic_ui.test.settings')
25
23sys.path.insert(0, ROOT) 26sys.path.insert(0, ROOT)
24 27
25sys.path.insert(0, os.path.abspath('../..')) 28sys.path.insert(0, os.path.abspath('../..'))