Hi there,
We are really new to develop & customize openedx platform. Also we are using lilac 5 fork. When i try to override certificates_list_handler method from custom djangoapp and just import it like ;
from cms.djangoapps.contentstore.views.certificates import certificates_list_handler
it always raises
lms-worker_1 | RuntimeError: Model class cms.djangoapps.xblock_config.models.StudioConfig doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
lms-worker_1 | Traceback (most recent call last):
lms-worker_1 | File "/openedx/venv/bin/celery", line 8, in <module>
lms-worker_1 | sys.exit(main())
lms-worker_1 | File "/openedx/venv/lib/python3.8/site-packages/celery/__main__.py", line 16, in main
lms-worker_1 | _main()
lms-worker_1 | File "/openedx/venv/lib/python3.8/site-packages/celery/bin/celery.py", line 322, in main
lms-worker_1 | cmd.execute_from_commandline(argv)
lms-worker_1 | File "/openedx/venv/lib/python3.8/site-packages/celery/bin/celery.py", line 499, in execute_from_commandline
lms-worker_1 | super(CeleryCommand, self).execute_from_commandline(argv)))
lms-worker_1 | File "/openedx/venv/lib/python3.8/site-packages/celery/bin/base.py", line 305, in execute_from_commandline
lms-worker_1 | return self.handle_argv(self.prog_name, argv[1:])
lms-worker_1 | File "/openedx/venv/lib/python3.8/site-packages/celery/bin/celery.py", line 491, in handle_argv
lms-worker_1 | return self.execute(command, argv)
lms-worker_1 | File "/openedx/venv/lib/python3.8/site-packages/celery/bin/celery.py", line 415, in execute
lms-worker_1 | return cls(
lms-worker_1 | File "/openedx/venv/lib/python3.8/site-packages/celery/bin/worker.py", line 223, in run_from_argv
lms-worker_1 | return self(*args, **options)
lms-worker_1 | File "/openedx/venv/lib/python3.8/site-packages/celery/bin/base.py", line 253, in __call__
lms-worker_1 | ret = self.run(*args, **kwargs)
lms-worker_1 | File "/openedx/venv/lib/python3.8/site-packages/celery/bin/worker.py", line 253, in run
lms-worker_1 | worker = self.app.Worker(
lms-worker_1 | File "/openedx/venv/lib/python3.8/site-packages/celery/worker/worker.py", line 99, in __init__
lms-worker_1 | self.app.loader.init_worker()
lms-worker_1 | File "/openedx/venv/lib/python3.8/site-packages/celery/loaders/base.py", line 114, in init_worker
lms-worker_1 | self.import_default_modules()
lms-worker_1 | File "/openedx/venv/lib/python3.8/site-packages/celery/loaders/base.py", line 108, in import_default_modules
lms-worker_1 | raise response
lms-worker_1 | File "/openedx/venv/lib/python3.8/site-packages/celery/utils/dispatch/signal.py", line 288, in send
lms-worker_1 | response = receiver(signal=self, sender=sender, **named)
lms-worker_1 | File "/openedx/venv/lib/python3.8/site-packages/celery/fixups/django.py", line 84, in on_import_modules
lms-worker_1 | self.worker_fixup.validate_models()
lms-worker_1 | File "/openedx/venv/lib/python3.8/site-packages/celery/fixups/django.py", line 123, in validate_models
lms-worker_1 | run_checks()
lms-worker_1 | File "/openedx/venv/lib/python3.8/site-packages/django/core/checks/registry.py", line 72, in run_checks
lms-worker_1 | new_errors = check(app_configs=app_configs)
lms-worker_1 | File "/openedx/venv/lib/python3.8/site-packages/django/core/checks/urls.py", line 13, in check_url_config
lms-worker_1 | return check_resolver(resolver)
lms-worker_1 | File "/openedx/venv/lib/python3.8/site-packages/django/core/checks/urls.py", line 23, in check_resolver
lms-worker_1 | return check_method()
lms-worker_1 | File "/openedx/venv/lib/python3.8/site-packages/django/urls/resolvers.py", line 399, in check
lms-worker_1 | for pattern in self.url_patterns:
lms-worker_1 | File "/openedx/venv/lib/python3.8/site-packages/django/utils/functional.py", line 80, in __get__
lms-worker_1 | res = instance.__dict__[self.name] = self.func(instance)
lms-worker_1 | File "/openedx/venv/lib/python3.8/site-packages/django/urls/resolvers.py", line 584, in url_patterns
lms-worker_1 | patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
lms-worker_1 | File "/openedx/venv/lib/python3.8/site-packages/django/utils/functional.py", line 80, in __get__
lms-worker_1 | res = instance.__dict__[self.name] = self.func(instance)
lms-worker_1 | File "/openedx/venv/lib/python3.8/site-packages/django/urls/resolvers.py", line 577, in urlconf_module
lms-worker_1 | return import_module(self.urlconf_name)
lms-worker_1 | File "/opt/pyenv/versions/3.8.6/lib/python3.8/importlib/__init__.py", line 127, in import_module
lms-worker_1 | return _bootstrap._gcd_import(name[level:], package, level)
lms-worker_1 | File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
lms-worker_1 | File "<frozen importlib._bootstrap>", line 991, in _find_and_load
lms-worker_1 | File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
lms-worker_1 | File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
lms-worker_1 | File "<frozen importlib._bootstrap_external>", line 783, in exec_module
lms-worker_1 | File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
lms-worker_1 | File "/openedx/edx-platform/lms/urls.py", line 990, in <module>
lms-worker_1 | urlpatterns.extend(get_plugin_url_patterns(ProjectType.LMS))
lms-worker_1 | File "/openedx/venv/lib/python3.8/site-packages/edx_django_utils/plugins/plugin_urls.py", line 34, in get_plugin_url_patterns
lms-worker_1 | return [
lms-worker_1 | File "/openedx/venv/lib/python3.8/site-packages/edx_django_utils/plugins/plugin_urls.py", line 35, in <listcomp>
lms-worker_1 | _get_url(url_module_path, url_config)
lms-worker_1 | File "/openedx/venv/lib/python3.8/site-packages/edx_django_utils/plugins/plugin_urls.py", line 26, in _get_url
lms-worker_1 | return url(regex, include(url_module_path))
lms-worker_1 | File "/openedx/venv/lib/python3.8/site-packages/django/urls/conf.py", line 34, in include
lms-worker_1 | urlconf_module = import_module(urlconf_module)
lms-worker_1 | File "/opt/pyenv/versions/3.8.6/lib/python3.8/importlib/__init__.py", line 127, in import_module
lms-worker_1 | return _bootstrap._gcd_import(name[level:], package, level)
lms-worker_1 | File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
lms-worker_1 | File "<frozen importlib._bootstrap>", line 991, in _find_and_load
lms-worker_1 | File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
lms-worker_1 | File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
lms-worker_1 | File "<frozen importlib._bootstrap_external>", line 783, in exec_module
lms-worker_1 | File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
lms-worker_1 | File "/openedx/requirements/softtechtabs/softtechtabs/urls.py", line 7, in <module>
lms-worker_1 | from . import views
lms-worker_1 | File "/openedx/requirements/softtechtabs/softtechtabs/views.py", line 20, in <module>
lms-worker_1 | from cms.djangoapps.contentstore.views.certificates import certificates_list_handler
lms-worker_1 | File "/openedx/edx-platform/cms/djangoapps/contentstore/views/__init__.py", line 5, in <module>
lms-worker_1 | from .component import *
lms-worker_1 | File "/openedx/edx-platform/cms/djangoapps/contentstore/views/component.py", line 33, in <module>
lms-worker_1 | from .item import StudioEditModuleRuntime, add_container_page_publishing_info, create_xblock_info
lms-worker_1 | File "/openedx/edx-platform/cms/djangoapps/contentstore/views/item.py", line 32, in <module>
lms-worker_1 | from cms.djangoapps.xblock_config.models import CourseEditLTIFieldsEnabledFlag
lms-worker_1 | File "/openedx/edx-platform/cms/djangoapps/xblock_config/models.py", line 15, in <module>
lms-worker_1 | class StudioConfig(ConfigurationModel):
lms-worker_1 | File "/openedx/venv/lib/python3.8/site-packages/django/db/models/base.py", line 108, in __new__
lms-worker_1 | raise RuntimeError(
lms-worker_1 | RuntimeError: Model class cms.djangoapps.xblock_config.models.StudioConfig doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
tutor_local_lms-worker_1 exited with code 1
S
Is there any alternatives to send custom data to certificates or fix this error ?
Thank you for any help.