Skip to content

Commit

Permalink
Merge pull request #22 from aboutcode-org/rtd
Browse files Browse the repository at this point in the history
Add Django app directory to sys.path for autodoc
  • Loading branch information
keshav-space authored Sep 26, 2024
2 parents 3e8898e + 09d67ec commit f49f5e5
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 f49f5e5

Please sign in to comment.