Commit c537fdfe by Dennis Jen

Merge pull request #151 from edx/dsjen/error-doc-setting-eval

Evaluate DOCUMENTATION_LOAD_ERROR_MESSAGE at the end of production settings.
parents 1e36b297 719d0282
......@@ -277,9 +277,8 @@ HELP_URL = None
########## DOCUMENTATION LINKS -- These values should be overridden for production deployments.
DOCUMENTATION_LOAD_ERROR_URL = 'http://example.com/'
DOCUMENTATION_LOAD_ERROR_MESSAGE = 'This data may not be available for your course. For example, student ' \
'enrollment data is not computed for courses created prior to December 4, 2014. ' \
'<a href="{error_documentation_link}">Read more</a>.'.format(error_documentation_link=DOCUMENTATION_LOAD_ERROR_URL)
# evaluated again at the end of production setting after DOCUMENTATION_LOAD_ERROR_URL has been set
DOCUMENTATION_LOAD_ERROR_MESSAGE = '<a href="{error_documentation_link}">Read more</a>.'.format(error_documentation_link=DOCUMENTATION_LOAD_ERROR_URL)
########## END FEEDBACK
......
......@@ -57,3 +57,8 @@ for override, value in DB_OVERRIDES.iteritems():
# Re-declare the full application name in case the components have been overridden.
FULL_APPLICATION_NAME = '{0} {1}'.format(PLATFORM_NAME, APPLICATION_NAME)
# Depends on DOCUMENTATION_LOAD_ERROR_URL, so evaluate at the end
DOCUMENTATION_LOAD_ERROR_MESSAGE = 'This data may not be available for your course. For example, student ' \
'enrollment data is not computed for courses created prior to December 4, 2014. ' \
'<a href="{error_documentation_link}">Read more</a>.'.format(error_documentation_link=DOCUMENTATION_LOAD_ERROR_URL)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment