more generic path given

This commit is contained in:
Viktor Nagy 2014-08-12 23:10:05 +02:00
parent 1998ba8d8c
commit 738b79bc70

View file

@ -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'