|
13 | 13 |
|
14 | 14 | import sys, os, re |
15 | 15 |
|
16 | | -os.environ['DJANGO_SETTINGS_MODULE'] = 'example.settings' |
17 | | - |
18 | 16 | # If extensions (or modules to document with autodoc) are in another directory, |
19 | 17 | # add these directories to sys.path here. If the directory is relative to the |
20 | 18 | # 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' |
24 | 25 | import oauth2_provider |
25 | 26 |
|
26 | 27 | # -- General configuration ----------------------------------------------------- |
@@ -137,7 +138,7 @@ def get_version(package): |
137 | 138 | # Add any paths that contain custom static files (such as style sheets) here, |
138 | 139 | # relative to this directory. They are copied after the builtin static files, |
139 | 140 | # so a file named "default.css" will overwrite the builtin "default.css". |
140 | | -html_static_path = ['_static'] |
| 141 | +#html_static_path = ['_static'] |
141 | 142 |
|
142 | 143 | # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, |
143 | 144 | # using the given strftime format. |
|
0 commit comments