summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkihiro Motoki <motoki@da.jp.nec.com>2014-09-13 19:43:20 +0900
committerAkihiro Motoki <motoki@da.jp.nec.com>2014-09-13 19:43:20 +0900
commit015f4354528253cc8a85b7c5f67bbf6236fc8076 (patch)
tree2499bab21363d09d4d5ca0f8d64463feca0708e4
parent5c8b0c78f28a9fdc8eea91bc0d89879523dd1959 (diff)
downloaddjango_openstack_auth-015f4354528253cc8a85b7c5f67bbf6236fc8076.tar.gz
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
-rw-r--r--doc/source/conf.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py
index 93e060b..694f137 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -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.