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:
Akihiro Motoki
2014-09-13 19:43:20 +09:00
parent 5c8b0c78f2
commit 015f435452

View File

@@ -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.