/
githubmirror
/
edx-platform
Обзор
Документация
Войти
/
githubmirror
/
edx-platform
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
release-ulmo
openedx/core/djangoapps/plugins/constants.py
43 строки
1 KB
Omar Al-Ithawi
feat: atlas pull plugins translation
27 янв 2024, 12:05
27 янв 2024, 12:05
867eeff
Код
Авторство
О чём код?
""" Constants used by django app plugins """ # expose constants from edx-django-utils so plugins using these continue to work from edx_django_utils.plugins import ( # lint-amnesty, pylint: disable=unused-import PluginSettings, # pylint: disable=unused-import PluginURLs, # pylint: disable=unused-import PluginSignals, # pylint: disable=unused-import PluginContexts, # pylint: disable=unused-import ) class ProjectType(): """ The ProjectType enum defines the possible values for the Django Projects that are available in the edx-platform. Plugin apps use these values to declare explicitly which projects they are extending. """ LMS = 'lms.djangoapp' CMS = 'cms.djangoapp' class SettingsType(): """ The SettingsType enum defines the possible values for the settings files that are available for extension in the edx-platform. Plugin apps use these values (in addition to ProjectType) to declare explicitly which settings (in the specified project) they are extending. See https://github.com/openedx/edx-platform/master/lms/envs/docs/README.rst for further information on each Settings Type. """ PRODUCTION = 'production' COMMON = 'common' DEVSTACK = 'devstack' TEST = 'test' # Locale root for IDA plugins for LMS and CMS, relative to settings.REPO_ROOT plugins_locale_root = 'conf/plugins-locale/plugins'