瀏覽代碼

Enable 'make docs' to work with Django>=1.8

master
David Winterbottom 10 年之前
父節點
當前提交
75d1808847
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      docs/source/conf.py

+ 3
- 0
docs/source/conf.py 查看文件

@@ -29,6 +29,9 @@ sys.path.append(sandbox_folder)
29 29
 # Specify settings module (which will be picked up from the sandbox)
30 30
 os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'settings_sphinx')
31 31
 
32
+import django
33
+django.setup()
34
+
32 35
 # -- General configuration -----------------------------------------------------
33 36
 
34 37
 # If your documentation needs a minimal Sphinx version, state it here.

Loading…
取消
儲存