[Python-modules-commits] [python-django-treebeard] 03/12: Initialize django in sphinx configuration to prevent AppRegistryNotReady exception.
Michael Fladischer
fladi at moszumanska.debian.org
Thu May 5 13:11:24 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 376524653582e91be67285c4da2da50262b821ed
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 8b7e369..a026163 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