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 <git@keshav.space>
  • Loading branch information
keshav-space committed Sep 26, 2024
1 parent 3e8898e commit 09d67ec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,14 @@
# 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")
os.environ.setdefault("FEDERATEDCODE_CLIENT_ID", "dummy secret key for autodoc rtd documentation")
os.environ.setdefault("FEDERATEDCODE_CLIENT_SECRET", "dummy secret key for autodoc rtd documentation")

sys.path.insert(0, os.path.abspath("../../."))

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

Expand Down

0 comments on commit 09d67ec

Please sign in to comment.