Skip to content

Commit

Permalink
Add Django app directory to sys.path for autodoc
Browse files Browse the repository at this point in the history
Signed-off-by: Keshav Priyadarshi <[email protected]>
  • Loading branch information
keshav-space committed Sep 26, 2024
1 parent 3e8898e commit bf265f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@
# documentation root, use os.path.abspath to make it absolute, like shown here.

import os
import sys

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "federatedcode.settings")
os.environ.setdefault("SECRET_KEY", "dummy secret key for autodoc rtd documentation")
sys.path.insert(0, os.path.abspath("../../."))

# -- Project information -----------------------------------------------------

Expand Down

0 comments on commit bf265f0

Please sign in to comment.