Fixed docs building, it now uses the example project so that django-tables modules...
authorBradley Ayers <bradley.ayers@gmail.com>
Mon, 6 Jun 2011 13:29:54 +0000 (23:29 +1000)
committerBradley Ayers <bradley.ayers@gmail.com>
Mon, 6 Jun 2011 13:29:54 +0000 (23:29 +1000)
django_tables/columns.py
docs/conf.py

index b66dec407b0fdb60c5addc9dc6de31a753237a91..52a675013b5364706071f7c2a90dc804c9de1865 100644 (file)
@@ -1,11 +1,11 @@
 # -*- 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
 
 
index 6322cbfa5a8cbe36be75107b695c6d9ae76df972..c79e25a22e8f3629017329d56ec8527127a06d60 100644 (file)
 # 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 -----------------------------------------------------