0

我正在使用 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 等其他文件。

关于为什么会出现此错误的任何想法?

如果您需要任何其他代码段,我会保持警惕。

4

0 回答 0