Updated docs/conf.py to use the test project for settings

This commit is contained in:
Alen Mujezinovic 2013-06-14 16:19:42 +01:00
parent 7945c81cd5
commit 04ab258e63
1 changed files with 2 additions and 4 deletions

View File

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