mirror of
https://github.com/jazzband/django-configurations.git
synced 2026-03-16 22:20:27 +00:00
more generic path given
This commit is contained in:
parent
1998ba8d8c
commit
738b79bc70
1 changed files with 1 additions and 1 deletions
|
|
@ -204,7 +204,7 @@ Sphinx
|
|||
In case you would like to user the amazing `autodoc` feature of `http://sphinx-doc.org/`_,
|
||||
you can initialize you django project the following way in your `conf.py`::
|
||||
|
||||
ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), '../../'))
|
||||
ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), '/path/to/project/root'))
|
||||
sys.path.append(ROOT)
|
||||
os.environ['DJANGO_SETTINGS_MODULE'] = 'myproject.settings'
|
||||
os.environ['DJANGO_CONFIGURATION'] = 'Dev'
|
||||
|
|
|
|||
Loading…
Reference in a new issue