Files
edx-platform/lms/djangoapps/instructor/settings/production.py
Feanil Patel 9cf2f9f298 Run 2to3 -f future . -w
This will remove imports from __future__ that are no longer needed.

https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
2019-12-30 10:35:30 -05:00

23 lines
850 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 'ENABLE_S3_GRADE_DOWNLOADS' in settings.FEATURES:
warnings.warn(
"'ENABLE_S3_GRADE_DOWNLOADS' is deprecated. Please use 'ENABLE_GRADE_DOWNLOADS' instead",
DeprecationWarning,
)
settings.FEATURES['ENABLE_GRADE_DOWNLOADS'] = settings.FEATURES['ENABLE_S3_GRADE_DOWNLOADS']