Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Ensure that version detection in docs from 373df56 uses the right Dja…

…ngo copy.
  • Loading branch information...
commit 0b98ef632147a26f2430a3ede48d9e58983cc3ae 1 parent b4420d9
@ramiro ramiro authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 docs/
7 docs/
@@ -14,12 +14,15 @@
from __future__ import unicode_literals
import sys
-import os
+from os.path import abspath, dirname, join
+# Make sure we use this copy of Django
+sys.path.insert(1, abspath(dirname(dirname(__file__))))
# 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.
-sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "_ext")))
+sys.path.append(abspath(join(dirname(__file__), "_ext")))
# -- General configuration -----------------------------------------------------
Please sign in to comment.
Something went wrong with that request. Please try again.