/
githubmirror
/
edx-platform
Обзор
Документация
Войти
/
githubmirror
/
edx-platform
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
release-ulmo
openedx/core/djangoapps/credentials/apps.py
47 строк
2 KB
M. Zulqarnain
feat: New codemods on OpenedX 1 (#28776)
27 окт 2021, 11:07
Не верифицирован
27 окт 2021, 11:07
39b9115
Код
Авторство
О чём код?
""" Credentials Configuration """ from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ from edx_django_utils.plugins import PluginSettings, PluginSignals from openedx.core.djangoapps.plugins.constants import ProjectType, SettingsType class CredentialsConfig(AppConfig): """ Configuration class for credentials Django app """ name = 'openedx.core.djangoapps.credentials' verbose_name = _("Credentials") plugin_app = { PluginSettings.CONFIG: { ProjectType.LMS: { SettingsType.PRODUCTION: {PluginSettings.RELATIVE_PATH: 'settings.production'}, SettingsType.COMMON: {PluginSettings.RELATIVE_PATH: 'settings.common'}, SettingsType.DEVSTACK: {PluginSettings.RELATIVE_PATH: 'settings.devstack'}, SettingsType.TEST: {PluginSettings.RELATIVE_PATH: 'settings.test'}, } }, PluginSignals.CONFIG: { ProjectType.LMS: { PluginSignals.RECEIVERS: [ { PluginSignals.RECEIVER_FUNC_NAME: 'handle_grade_change', PluginSignals.SIGNAL_PATH: 'openedx.core.djangoapps.signals.signals.COURSE_GRADE_CHANGED', }, { PluginSignals.RECEIVER_FUNC_NAME: 'handle_cert_change', PluginSignals.SIGNAL_PATH: 'openedx.core.djangoapps.signals.signals.COURSE_CERT_CHANGED', }, ], }, }, } def ready(self): # Register celery workers from openedx.core.djangoapps.credentials.tasks.v1 import tasks # lint-amnesty, pylint: disable=unused-import, unused-variable