From 015f4354528253cc8a85b7c5f67bbf6236fc8076 Mon Sep 17 00:00:00 2001 From: Akihiro Motoki Date: Sat, 13 Sep 2014 19:43:20 +0900 Subject: [PATCH] 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 --- doc/source/conf.py | 4 ++++ 1 file changed, 4 insertions(+) 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.