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
(cherry picked from commit a368c4cdf6
)
This commit is contained in:
parent
e2cba8ed87
commit
ca9f9f1e9c
|
@ -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('../..'))
|
||||
|
|
Loading…
Reference in New Issue