From 738b79bc70a95f0ad60374b2a25378295f80e15f Mon Sep 17 00:00:00 2001 From: Viktor Nagy Date: Tue, 12 Aug 2014 23:10:05 +0200 Subject: [PATCH] more generic path given --- docs/cookbook.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/cookbook.rst b/docs/cookbook.rst index bc407db..82d109e 100644 --- a/docs/cookbook.rst +++ b/docs/cookbook.rst @@ -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'