diff --git a/GeoffreyApp/docs/source/conf.py b/GeoffreyApp/docs/source/conf.py index d4cf30e..5bbc0d4 100644 --- a/GeoffreyApp/docs/source/conf.py +++ b/GeoffreyApp/docs/source/conf.py @@ -12,14 +12,13 @@ # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. # -import os -import sys import django -sys.path.insert(0, os.path.abspath('../../../../Geoffrey/')) -os.environ['DJANGO_SETTINGS_MODULE'] = 'Geoffrey.settings' +from django.conf import settings +settings.configure(INSTALLED_APPS=["GeoffreyApp"]) django.setup() + # -- Project information ----------------------------------------------------- project = 'Geoffrey'