23 lines
824 B
Python
23 lines
824 B
Python
"""AWS environment variables unique to the instructor plugin."""
|
|
|
|
|
|
import warnings
|
|
|
|
|
|
def plugin_settings(settings):
|
|
"""Settings for the instructor plugin."""
|
|
# Analytics Dashboard
|
|
settings.ANALYTICS_DASHBOARD_URL = settings.ENV_TOKENS.get(
|
|
"ANALYTICS_DASHBOARD_URL", settings.ANALYTICS_DASHBOARD_URL
|
|
)
|
|
settings.ANALYTICS_DASHBOARD_NAME = settings.ENV_TOKENS.get(
|
|
"ANALYTICS_DASHBOARD_NAME", settings.ANALYTICS_DASHBOARD_NAME
|
|
)
|
|
# Backward compatibility for deprecated feature names
|
|
if hasattr(settings, 'ENABLE_S3_GRADE_DOWNLOADS'):
|
|
warnings.warn(
|
|
"'ENABLE_S3_GRADE_DOWNLOADS' is deprecated. Please use 'ENABLE_GRADE_DOWNLOADS' instead",
|
|
DeprecationWarning,
|
|
)
|
|
settings.ENABLE_GRADE_DOWNLOADS = settings.ENABLE_S3_GRADE_DOWNLOADS
|