Skip to content
Snippets Groups Projects
Commit 25e9826b authored by Stefano Zacchiroli's avatar Stefano Zacchiroli
Browse files

conf.py: initialize Django to allow importing swh-web modules

parent 3b9d09c3
No related branches found
No related tags found
No related merge requests found
from swh.docs.sphinx.conf import * # NoQA
# For swh-web, needed to allow import of django modules (sigh). Note: this is
# here and not in swh.docs.sphinx.docs to avoid forcing a django dependency on
# every module that uses the common Sphinx configuration.
import os
import django
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "swh.web.settings")
django.setup()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment