Skip to content

Instantly share code, notes, and snippets.

@clemente
Created September 5, 2018 22:12
Show Gist options
  • Save clemente/96d091bcd81f8816b7c5f288087e4268 to your computer and use it in GitHub Desktop.
Save clemente/96d091bcd81f8816b7c5f288087e4268 to your computer and use it in GitHub Desktop.
Runtime error in Docker image
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/manage.py", line 118, in <module>
startup.run()
File "/edx/app/edxapp/edx-platform/lms/startup.py", line 19, in run
django.setup()
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/__init__.py", line 27, in setup
apps.populate(settings.INSTALLED_APPS)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/apps/registry.py", line 108, in populate
app_config.import_models()
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/apps/config.py", line 202, in import_models
self.models_module = import_module(models_module_name)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/edx/app/edxapp/edx-platform/lms/djangoapps/bulk_email/models.py", line 16, in <module>
from openedx.core.djangoapps.course_groups.cohorts import get_cohort_by_name
File "/edx/app/edxapp/edx-platform/openedx/core/djangoapps/course_groups/cohorts.py", line 9, in <module>
from courseware import courses
File "/edx/app/edxapp/edx-platform/lms/djangoapps/courseware/courses.py", line 22, in <module>
from courseware.module_render import get_module
File "/edx/app/edxapp/edx-platform/lms/djangoapps/courseware/module_render.py", line 52, in <module>
from openedx.core.djangoapps.bookmarks.services import BookmarksService
File "/edx/app/edxapp/edx-platform/openedx/core/djangoapps/bookmarks/services.py", line 12, in <module>
from . import DEFAULT_FIELDS, api
File "/edx/app/edxapp/edx-platform/openedx/core/djangoapps/bookmarks/api.py", line 11, in <module>
from .models import Bookmark
File "/edx/app/edxapp/edx-platform/openedx/core/djangoapps/bookmarks/models.py", line 41, in <module>
class Bookmark(TimeStampedModel):
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/base.py", line 118, in __new__
"INSTALLED_APPS." % (module, name)
RuntimeError: Model class openedx.core.djangoapps.bookmarks.models.Bookmark doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment