Set DJANGO_SETTINGS_MODULE envvar in doc/source/conf.py
This fixes the issue that the doc is not generated properly in gate-django_openstack_auth-docs job. Change-Id: I5780ee32856a9b1fd4aed5b6a1a84d319aaf464e Closes-Bug: #1369064
This commit is contained in:
@@ -11,6 +11,10 @@
|
||||
# All configuration values have a default; values that are commented out
|
||||
# serve to show the default.
|
||||
|
||||
import os
|
||||
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'openstack_auth.tests.settings')
|
||||
|
||||
# If extensions (or modules to document with autodoc) are in another directory,
|
||||
# add these directories to sys.path here. If the directory is relative to the
|
||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||
|
||||
Reference in New Issue
Block a user