44 lines
1.4 KiB
Python
44 lines
1.4 KiB
Python
"""
|
|
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'
|