Browse Source

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

master
David Winterbottom 10 years ago
parent
commit
75d1808847
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      docs/source/conf.py

+ 3
- 0
docs/source/conf.py View File

@@ -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…
Cancel
Save