Use `settings.configure()` to create django settings for doc building
+ Allows docs to be built on other machinesdoc_update
parent
cbd7c02117
commit
9104ae9bd0
|
@ -12,14 +12,13 @@
|
|||
# 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.
|
||||
#
|
||||
import os
|
||||
import sys
|
||||
import django
|
||||
|
||||
sys.path.insert(0, os.path.abspath('../../../../Geoffrey/'))
|
||||
os.environ['DJANGO_SETTINGS_MODULE'] = 'Geoffrey.settings'
|
||||
from django.conf import settings
|
||||
settings.configure(INSTALLED_APPS=["GeoffreyApp"])
|
||||
django.setup()
|
||||
|
||||
|
||||
# -- Project information -----------------------------------------------------
|
||||
|
||||
project = 'Geoffrey'
|
||||
|
|
Loading…
Reference in New Issue