我正在使用django python 1.7和2.7。我有一个项目('TEJUJAGUA')里面有一个应用程序('SIGAPPY')。使用时应用程序正确执行。我的问题是我需要使用 pydoc 生成文档。
要执行此操作,请从位于文件manage.py所在目录的shell中运行命令:
pydoc -w ./
产生下一个输出:
wrote SIGAPPY.html
problem in SIGAPPY.FirstView - <class 'django.core.exceptions.AppRegistryNotReady'>: Models aren't loaded yet.
wrote SIGAPPY.admin.html
problem in SIGAPPY.forms - <class 'django.core.exceptions.AppRegistryNotReady'>: Models aren't loaded yet.
wrote SIGAPPY.models.html
wrote SIGAPPY.tests.html
problem in SIGAPPY.urls - <class 'django.core.exceptions.AppRegistryNotReady'>: Models aren't loaded yet.
wrote SIGAPPY.views.html
wrote TEJUJAGUA.html
wrote TEJUJAGUA.settings.html
problem in TEJUJAGUA.urls - <class 'django.core.exceptions.AppRegistryNotReady'>: Apps aren't loaded yet.
wrote TEJUJAGUA.wsgi.html
wrote manage.html
导致 pydoc 仅为某些文件生成html页面,但省略了其他文件,如FirstView.py,forms.py等。
有关此错误原因的任何想法?。
如果您需要任何其他代码段,我会发出警报。