Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed bugs in [372]

git-svn-id: http://code.djangoproject.com/svn/djangoproject.com@375 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 3c4da9a06780f1d43cae0d353046df1d0907673e 1 parent 882998a
jacob authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 django_website/apps/docs/parts/build_documentation.py
View
7 django_website/apps/docs/parts/build_documentation.py
@@ -9,11 +9,12 @@
import os
import sys
import glob
+import inspect
from docutils import nodes, utils
from docutils.core import publish_parts
from docutils.writers import html4css1
from django.conf import settings
-from django.core import template
+from django.core import meta, template
SETTINGS = {
'initial_header_level': 2
@@ -67,7 +68,7 @@ def build_documents():
open(toc_file, 'w').write(parts['toc'])
def build_test_documents():
- sys.path.append(settings.DJANGO_TESTS_PATH)
+ sys.path.insert(0, settings.DJANGO_TESTS_PATH)
writer = DjangoHTMLWriter()
import runtests
@@ -85,7 +86,7 @@ def build_test_documents():
parts = publish_parts(
blurb,
source_path=mod.__file__,
- destination=out_file,
+ destination_path=out_file,
writer=writer,
settings_overrides=SETTINGS,
)
Please sign in to comment.
Something went wrong with that request. Please try again.