Commit e6cba609 by Dongwook Yoon

Merge pull request #9057 from edx/dongwook/djpyfs

allows platform version formatting as a part of static url served by …
parents 5aa127a9 e7aa8fc1
...@@ -229,3 +229,4 @@ Pan Luo <pan.luo@ubc.ca> ...@@ -229,3 +229,4 @@ Pan Luo <pan.luo@ubc.ca>
Tyler Nickerson <nickersoft@gmail.com> Tyler Nickerson <nickersoft@gmail.com>
Vedran Karačić <vedran@edx.org> Vedran Karačić <vedran@edx.org>
William Ono <william.ono@ubc.ca> William Ono <william.ono@ubc.ca>
Dongwook Yoon <dy252@cornell.edu>
...@@ -238,6 +238,8 @@ with open(CONFIG_ROOT / CONFIG_PREFIX + "auth.json") as auth_file: ...@@ -238,6 +238,8 @@ with open(CONFIG_ROOT / CONFIG_PREFIX + "auth.json") as auth_file:
############### XBlock filesystem field config ########## ############### XBlock filesystem field config ##########
if 'DJFS' in AUTH_TOKENS and AUTH_TOKENS['DJFS'] is not None: if 'DJFS' in AUTH_TOKENS and AUTH_TOKENS['DJFS'] is not None:
DJFS = AUTH_TOKENS['DJFS'] DJFS = AUTH_TOKENS['DJFS']
if 'url_root' in DJFS:
DJFS['url_root'] = DJFS['url_root'].format(platform_revision=EDX_PLATFORM_REVISION)
EMAIL_HOST_USER = AUTH_TOKENS.get('EMAIL_HOST_USER', EMAIL_HOST_USER) EMAIL_HOST_USER = AUTH_TOKENS.get('EMAIL_HOST_USER', EMAIL_HOST_USER)
EMAIL_HOST_PASSWORD = AUTH_TOKENS.get('EMAIL_HOST_PASSWORD', EMAIL_HOST_PASSWORD) EMAIL_HOST_PASSWORD = AUTH_TOKENS.get('EMAIL_HOST_PASSWORD', EMAIL_HOST_PASSWORD)
......
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