# -*- coding: utf-8 -*-
from django.core.urlresolvers import reverse
from django.utils.encoding import force_unicode, StrAndUnicode
-from django.db.models.fields import FieldDoesNotExist
from django.utils.datastructures import SortedDict
from django.utils.text import capfirst
from django.utils.safestring import mark_safe
from django.template import RequestContext, Context, Template
+from django.db.models.fields import FieldDoesNotExist
from .utils import OrderBy, A, AttributeDict
# All configuration values have a default; values that are commented out
# serve to show the default.
-import sys, os
-
# 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
sys.path.insert(0, os.path.join(os.path.abspath('.'), os.pardir))
-import django_tables as tables
+import example
sys.path.pop(0)
+os.environ["DJANGO_SETTINGS_MODULE"] = "example.settings"
# -- General configuration -----------------------------------------------------