Skip to content

Commit 592bd71

Browse files
committed
minor adjustments and warnings suppression
1 parent 70ca660 commit 592bd71

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

docs/conf.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,15 @@
1313

1414
import sys, os, re
1515

16-
os.environ['DJANGO_SETTINGS_MODULE'] = 'example.settings'
17-
1816
# If extensions (or modules to document with autodoc) are in another directory,
1917
# add these directories to sys.path here. If the directory is relative to the
2018
# documentation root, use os.path.abspath to make it absolute, like shown here.
21-
sys.path.insert(0, os.path.abspath('.'))
22-
sys.path.insert(0, os.path.abspath('..'))
23-
sys.path.insert(0, os.path.abspath('../example'))
19+
here = os.path.abspath(os.path.dirname(__file__))
20+
sys.path.insert(0, here)
21+
sys.path.insert(0, os.path.join(here, '..'))
22+
sys.path.insert(0, os.path.join(here, '..', 'example'))
23+
24+
os.environ['DJANGO_SETTINGS_MODULE'] = 'example.settings.dev'
2425
import oauth2_provider
2526

2627
# -- General configuration -----------------------------------------------------
@@ -137,7 +138,7 @@ def get_version(package):
137138
# Add any paths that contain custom static files (such as style sheets) here,
138139
# relative to this directory. They are copied after the builtin static files,
139140
# so a file named "default.css" will overwrite the builtin "default.css".
140-
html_static_path = ['_static']
141+
#html_static_path = ['_static']
141142

142143
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
143144
# using the given strftime format.

0 commit comments

Comments
 (0)