From d9948bc53685f190d6c857a82efd3810e8ce5098 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Sat, 26 Dec 2015 19:53:25 +0100 Subject: [PATCH] =?UTF-8?q?[doc]=20Django=201.7=20fait=20son=20caca=20nerv?= =?UTF-8?q?eux=20et=20sphinx=20=C3=A9tait=20un=20peu=20perdu=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/source/conf.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/source/conf.py b/doc/source/conf.py index c8569b7..65c84e8 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -22,6 +22,12 @@ os.environ["DJANGO_SETTINGS_MODULE"] = "settings" sys.path.insert(0, os.path.abspath('../..')) sys.path.append(os.path.abspath('../../note/')) +# À partir de Django 1.7, on doit faire le setup si on veut pouvoir +# importer les modules avant d'avoir chargé toutes les apps +import django + +django.setup() + # -- General configuration ----------------------------------------------------- # If your documentation needs a minimal Sphinx version, state it here. -- 2.22.0