Explorar el Código

Sphinx conf: Configure django settings to properly load modules

Ask Solem hace 15 años
padre
commit
6293f118b2
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      docs/conf.py

+ 2 - 0
docs/conf.py

@@ -10,7 +10,9 @@ sys.path.append("../celery")
 sys.path.append("../testproj")
 import settings
 from django.core.management import setup_environ
+from django.conf import settings as dsettings
 setup_environ(settings)
+dsettings.configure()
 import celery
 sys.path.append(os.path.join(os.path.dirname(__file__), "_ext"))