[Python-modules-commits] [python-django-treebeard] 09/17: Initialize django in sphinx configuration to prevent AppRegistryNotReady exception.
Michael Fladischer
fladi at moszumanska.debian.org
Sat Jan 2 18:39:23 UTC 2016
This is an automated email from the git hooks/post-receive script.
fladi pushed a commit to branch master
in repository python-django-treebeard.
commit d955fcf84c4cc7f1ecacd65eb3da8c8f4f6e9713
Author: Michael Fladischer <fladi at debian.org>
Date: Wed Dec 30 20:36:42 2015 +0100
Initialize django in sphinx configuration to prevent AppRegistryNotReady exception.
---
docs/conf.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/docs/conf.py b/docs/conf.py
index 689155d..a869995 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -23,6 +23,9 @@ for directory in ('_ext', '..'):
os.environ['DJANGO_SETTINGS_MODULE'] = 'treebeard.tests.settings'
+import django
+django.setup()
+
extensions = [
'djangodocs',
'sphinx.ext.autodoc',
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-django-treebeard.git
More information about the Python-modules-commits
mailing list