diff --git a/docs/conf.py b/docs/conf.py index 0dbeea539532e28664ab91740d3fe8e39d4e9000..9eaf3742b03a4ffa4d7b4cfdb346cd00bc73c824 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -17,6 +17,12 @@ import sys, os # 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. #sys.path.insert(0, os.path.abspath('.')) +sys.path.insert(0, os.path.abspath('..')) +sys.path.insert(0, os.path.abspath('../testproject/')) + +# Set up the Django settings/environment +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "testproject.settings") +from django.conf import settings # -- General configuration ----------------------------------------------------- @@ -25,7 +31,7 @@ import sys, os # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. -extensions = [] +extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest'] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates']