As per title. The culprit seems to be this:
RuntimeError: Model class swh.web.common.models.SaveAuthorizedOrigin doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
Full tracebacks from sphinx output:
/home/zack/dati/projects/sw-heritage/git/swh-environment/swh-docs/docs/swh-web/apidoc/swh.web.rst:43: WARNING: autodoc: failed to import module 'swh.web.urls'; the following exception was raised: Traceback (most recent call last): File "/home/zack/.local/lib/python3.6/site-packages/sphinx/ext/autodoc.py", line 658, in import_object __import__(self.modname) File "/home/zack/dati/projects/sw-heritage/git/swh-environment/swh-web/swh/web/urls.py", line 32, in <module> url(r'^admin/', include('swh.web.admin.urls')), File "/usr/lib/python3/dist-packages/django/conf/urls/__init__.py", line 50, in include urlconf_module = import_module(urlconf_module) File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "/home/zack/dati/projects/sw-heritage/git/swh-environment/swh-web/swh/web/admin/urls.py", line 12, in <module> import swh.web.admin.origin_save # noqa File "/home/zack/dati/projects/sw-heritage/git/swh-environment/swh-web/swh/web/admin/origin_save.py", line 18, in <module> from swh.web.common.models import ( File "/home/zack/dati/projects/sw-heritage/git/swh-environment/swh-web/swh/web/common/models.py", line 9, in <module> class SaveAuthorizedOrigin(models.Model): File "/usr/lib/python3/dist-packages/django/db/models/base.py", line 118, in __new__ "INSTALLED_APPS." % (module, name) RuntimeError: Model class swh.web.common.models.SaveAuthorizedOrigin doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS. /home/zack/dati/projects/sw-heritage/git/swh-environment/swh-docs/docs/swh-web/apidoc/swh.web.admin.rst:20: WARNING: autodoc: failed to import module 'swh.web.admin.origin_save'; the following exception was raised: Traceback (most recent call last): File "/home/zack/.local/lib/python3.6/site-packages/sphinx/ext/autodoc.py", line 658, in import_object __import__(self.modname) File "/home/zack/dati/projects/sw-heritage/git/swh-environment/swh-web/swh/web/admin/origin_save.py", line 18, in <module> from swh.web.common.models import ( File "/home/zack/dati/projects/sw-heritage/git/swh-environment/swh-web/swh/web/common/models.py", line 9, in <module> class SaveAuthorizedOrigin(models.Model): File "/usr/lib/python3/dist-packages/django/db/models/base.py", line 118, in __new__ "INSTALLED_APPS." % (module, name) RuntimeError: Model class swh.web.common.models.SaveAuthorizedOrigin doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS. /home/zack/dati/projects/sw-heritage/git/swh-environment/swh-docs/docs/swh-web/apidoc/swh.web.admin.rst:28: WARNING: autodoc: failed to import module 'swh.web.admin.urls'; the following exception was raised: Traceback (most recent call last): File "/home/zack/.local/lib/python3.6/site-packages/sphinx/ext/autodoc.py", line 658, in import_object __import__(self.modname) File "/home/zack/dati/projects/sw-heritage/git/swh-environment/swh-web/swh/web/admin/urls.py", line 12, in <module> import swh.web.admin.origin_save # noqa File "/home/zack/dati/projects/sw-heritage/git/swh-environment/swh-web/swh/web/admin/origin_save.py", line 18, in <module> from swh.web.common.models import ( File "/home/zack/dati/projects/sw-heritage/git/swh-environment/swh-web/swh/web/common/models.py", line 9, in <module> class SaveAuthorizedOrigin(models.Model): File "/usr/lib/python3/dist-packages/django/db/models/base.py", line 118, in __new__ "INSTALLED_APPS." % (module, name) RuntimeError: Model class swh.web.common.models.SaveAuthorizedOrigin doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS. /home/zack/dati/projects/sw-heritage/git/swh-environment/swh-docs/docs/swh-web/apidoc/swh.web.api.rst:44: WARNING: autodoc: failed to import module 'swh.web.api.urls'; the following exception was raised: Traceback (most recent call last): File "/home/zack/.local/lib/python3.6/site-packages/sphinx/ext/autodoc.py", line 658, in import_object __import__(self.modname) File "/home/zack/dati/projects/sw-heritage/git/swh-environment/swh-web/swh/web/api/urls.py", line 11, in <module> import swh.web.api.views.origin_save # noqa File "/home/zack/dati/projects/sw-heritage/git/swh-environment/swh-web/swh/web/api/views/origin_save.py", line 10, in <module> from swh.web.common.origin_save import ( File "/home/zack/dati/projects/sw-heritage/git/swh-environment/swh-web/swh/web/common/origin_save.py", line 12, in <module> from swh.web.common.models import ( File "/home/zack/dati/projects/sw-heritage/git/swh-environment/swh-web/swh/web/common/models.py", line 9, in <module> class SaveAuthorizedOrigin(models.Model): File "/usr/lib/python3/dist-packages/django/db/models/base.py", line 118, in __new__ "INSTALLED_APPS." % (module, name) RuntimeError: Model class swh.web.common.models.SaveAuthorizedOrigin doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS. /home/zack/dati/projects/sw-heritage/git/swh-environment/swh-docs/docs/swh-web/apidoc/swh.web.api.views.rst:52: WARNING: autodoc: failed to import module 'swh.web.api.views.origin_save'; the following exception was raised: Traceback (most recent call last): File "/home/zack/.local/lib/python3.6/site-packages/sphinx/ext/autodoc.py", line 658, in import_object __import__(self.modname) File "/home/zack/dati/projects/sw-heritage/git/swh-environment/swh-web/swh/web/api/views/origin_save.py", line 10, in <module> from swh.web.common.origin_save import ( File "/home/zack/dati/projects/sw-heritage/git/swh-environment/swh-web/swh/web/common/origin_save.py", line 12, in <module> from swh.web.common.models import ( File "/home/zack/dati/projects/sw-heritage/git/swh-environment/swh-web/swh/web/common/models.py", line 9, in <module> class SaveAuthorizedOrigin(models.Model): File "/usr/lib/python3/dist-packages/django/db/models/base.py", line 118, in __new__ "INSTALLED_APPS." % (module, name) RuntimeError: Model class swh.web.common.models.SaveAuthorizedOrigin doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS. /home/zack/dati/projects/sw-heritage/git/swh-environment/swh-docs/docs/swh-web/apidoc/swh.web.browse.rst:28: WARNING: autodoc: failed to import module 'swh.web.browse.urls'; the following exception was raised: Traceback (most recent call last): File "/home/zack/.local/lib/python3.6/site-packages/sphinx/ext/autodoc.py", line 658, in import_object __import__(self.modname) File "/home/zack/dati/projects/sw-heritage/git/swh-environment/swh-web/swh/web/browse/urls.py", line 11, in <module> import swh.web.browse.views.origin_save # noqa File "/home/zack/dati/projects/sw-heritage/git/swh-environment/swh-web/swh/web/browse/views/origin_save.py", line 14, in <module> from swh.web.common.models import SaveOriginRequest File "/home/zack/dati/projects/sw-heritage/git/swh-environment/swh-web/swh/web/common/models.py", line 9, in <module> class SaveAuthorizedOrigin(models.Model): File "/usr/lib/python3/dist-packages/django/db/models/base.py", line 118, in __new__ "INSTALLED_APPS." % (module, name) RuntimeError: Model class swh.web.common.models.SaveAuthorizedOrigin doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS. /home/zack/dati/projects/sw-heritage/git/swh-environment/swh-docs/docs/swh-web/apidoc/swh.web.browse.views.rst:36: WARNING: autodoc: failed to import module 'swh.web.browse.views.origin_save'; the following exception was raised: Traceback (most recent call last): File "/home/zack/.local/lib/python3.6/site-packages/sphinx/ext/autodoc.py", line 658, in import_object __import__(self.modname) File "/home/zack/dati/projects/sw-heritage/git/swh-environment/swh-web/swh/web/browse/views/origin_save.py", line 14, in <module> from swh.web.common.models import SaveOriginRequest File "/home/zack/dati/projects/sw-heritage/git/swh-environment/swh-web/swh/web/common/models.py", line 9, in <module> class SaveAuthorizedOrigin(models.Model): File "/usr/lib/python3/dist-packages/django/db/models/base.py", line 118, in __new__ "INSTALLED_APPS." % (module, name) RuntimeError: Model class swh.web.common.models.SaveAuthorizedOrigin doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS. /home/zack/dati/projects/sw-heritage/git/swh-environment/swh-docs/docs/swh-web/apidoc/swh.web.common.rst:52: WARNING: autodoc: failed to import module 'swh.web.common.models'; the following exception was raised: Traceback (most recent call last): File "/home/zack/.local/lib/python3.6/site-packages/sphinx/ext/autodoc.py", line 658, in import_object __import__(self.modname) File "/home/zack/dati/projects/sw-heritage/git/swh-environment/swh-web/swh/web/common/models.py", line 9, in <module> class SaveAuthorizedOrigin(models.Model): File "/usr/lib/python3/dist-packages/django/db/models/base.py", line 118, in __new__ "INSTALLED_APPS." % (module, name) RuntimeError: Model class swh.web.common.models.SaveAuthorizedOrigin doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS. /home/zack/dati/projects/sw-heritage/git/swh-environment/swh-docs/docs/swh-web/apidoc/swh.web.common.rst:60: WARNING: autodoc: failed to import module 'swh.web.common.origin_save'; the following exception was raised: Traceback (most recent call last): File "/home/zack/.local/lib/python3.6/site-packages/sphinx/ext/autodoc.py", line 658, in import_object __import__(self.modname) File "/home/zack/dati/projects/sw-heritage/git/swh-environment/swh-web/swh/web/common/origin_save.py", line 12, in <module> from swh.web.common.models import ( File "/home/zack/dati/projects/sw-heritage/git/swh-environment/swh-web/swh/web/common/models.py", line 9, in <module> class SaveAuthorizedOrigin(models.Model): File "/usr/lib/python3/dist-packages/django/db/models/base.py", line 118, in __new__ "INSTALLED_APPS." % (module, name) RuntimeError: Model class swh.web.common.models.SaveAuthorizedOrigin doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.