Browse Source

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
tags/3.1.0
Andreas Jaeger 1 year ago
parent
commit
a368c4cdf6
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      doc/source/conf.py

+ 3
- 0
doc/source/conf.py View File

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

Loading…
Cancel
Save