简体   繁体   中英

Django Sphinx Error while importing

I am getting below error while running make html

AppRegistryNotReady: Apps aren't loaded yet.

My conf file contains the below conf for importing

import os
import sys    
sys.path.insert(0, os.path.abspath('..'))
from django.conf import settings
settings.configure()

docs is contained in my project folder. I have multiple apps.

Try setup

import os
import sys    
sys.path.insert(0, os.path.abspath('..'))
from django.conf import settings
settings.configure()
import django
django.setup()

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM