Просмотр исходного кода

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

master
David Winterbottom 10 лет назад
Родитель
Сommit
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.

Загрузка…
Отмена
Сохранить