Skip to content

Commit 09d67ec

Browse files
committed
Add Django app directory to sys.path for autodoc
Signed-off-by: Keshav Priyadarshi <git@keshav.space>
1 parent 3e8898e commit 09d67ec

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

docs/source/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,14 @@
1111
# documentation root, use os.path.abspath to make it absolute, like shown here.
1212

1313
import os
14+
import sys
1415

1516
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "federatedcode.settings")
17+
os.environ.setdefault("SECRET_KEY", "dummy secret key for autodoc rtd documentation")
18+
os.environ.setdefault("FEDERATEDCODE_CLIENT_ID", "dummy secret key for autodoc rtd documentation")
19+
os.environ.setdefault("FEDERATEDCODE_CLIENT_SECRET", "dummy secret key for autodoc rtd documentation")
20+
21+
sys.path.insert(0, os.path.abspath("../../."))
1622

1723
# -- Project information -----------------------------------------------------
1824

0 commit comments

Comments
 (0)