From 04ab258e63010f27a6c56c9cbaf1a8fd1cab0dfa Mon Sep 17 00:00:00 2001 From: Alen Mujezinovic Date: Fri, 14 Jun 2013 16:19:42 +0100 Subject: [PATCH] Updated docs/conf.py to use the test project for settings --- docs/conf.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index d49d0e2..1b9a709 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -13,14 +13,12 @@ import sys, os -PROJECT_DIR = os.path.dirname(__file__) -location = lambda x: os.path.join(os.path.dirname(os.path.realpath(__file__)), x) -sys.path.append(location('..')) +sys.path = [(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))] + sys.path import provider -os.environ['DJANGO_SETTINGS_MODULE'] = 'example.settings' +os.environ['DJANGO_SETTINGS_MODULE'] = '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