From 4a234cc0cce59b447281722f2a4dab72dff7a5b2 Mon Sep 17 00:00:00 2001 From: Bradley Ayers Date: Tue, 7 Jun 2011 00:09:41 +1000 Subject: [PATCH] Added import for django_tables to docs to fix problem with building. --- docs/conf.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index c79e25a..23ee16d 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -14,11 +14,15 @@ # 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. -import sys, os +import os +import sys +os.environ["DJANGO_SETTINGS_MODULE"] = "example.settings" +# import our libs sys.path.insert(0, os.path.join(os.path.abspath('.'), os.pardir)) import example +import django_tables as tables sys.path.pop(0) -os.environ["DJANGO_SETTINGS_MODULE"] = "example.settings" + # -- General configuration ----------------------------------------------------- -- 2.26.2