This happens to me when I do the openedx pytest:
pytest openedx
RuntimeError: Model class openedx.core.djangoapps.content_staging.models.StagedContent doesn’t declare an explicit app_label and isn’t in an application in INSTALLED_APPS.
This happens to me when I do the openedx pytest:
pytest openedx
RuntimeError: Model class openedx.core.djangoapps.content_staging.models.StagedContent doesn’t declare an explicit app_label and isn’t in an application in INSTALLED_APPS.
This error is similar to the one discussed in Django Installed Apps Error after Quickstart on M1 - could you please review that thread and see if any of the issues there are what’s causing it for you?
I’m encountering this error as well in my development environment. I have noticed that unlike content_tagging
, the content_staging
app is not explicitly added to the list of INSTALLED_APPS but rather is detected via the plugin_app
configurations. I wonder if there is a reason in our local environments that the plugin is not getting registered correctly. I’m planning to rebuild the image and see if that helps. Will keep you posted.
I found my silly error. This content_staging
app is only registered for the CMS environment, but I was in an LMS shell. When I switched into a shell within the CMS container, the errors went away.