From: Bradley Ayers Date: Mon, 6 Jun 2011 14:09:41 +0000 (+1000) Subject: Added import for django_tables to docs to fix problem with building. X-Git-Tag: v0.5.0^2~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4a234cc0cce59b447281722f2a4dab72dff7a5b2;p=django-tables2.git Added import for django_tables to docs to fix problem with building. --- 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 -----------------------------------------------------