Some more feedback on rst-building errors (readthedocs)
This commit is contained in:
parent
85952f8075
commit
52b72258d2
1 changed files with 4 additions and 1 deletions
|
|
@ -18,7 +18,10 @@ import sys, os
|
||||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||||
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath('.'))))
|
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath('.'))))
|
||||||
from django.core.management import setup_environ
|
from django.core.management import setup_environ
|
||||||
|
try:
|
||||||
from game import settings
|
from game import settings
|
||||||
|
except ImportError:
|
||||||
|
raise ImportError(str(sys.path))
|
||||||
setup_environ(settings)
|
setup_environ(settings)
|
||||||
|
|
||||||
# -- General configuration -----------------------------------------------------
|
# -- General configuration -----------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue