From 3934770d05c365eecf60c5ce9ed51b4736701e2d Mon Sep 17 00:00:00 2001 From: Nate Hardison Date: Fri, 31 May 2013 15:46:14 -0700 Subject: [PATCH] Add the `PLATFORM_NAME` setting for display config This setting is used to control the display name of the platform. The default is "edX", but themes may wish to override. For example, Stanford will use "Stanford Online" for the time being. --- lms/envs/aws.py | 2 ++ lms/envs/common.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/lms/envs/aws.py b/lms/envs/aws.py index 52befc8211..9f24349272 100644 --- a/lms/envs/aws.py +++ b/lms/envs/aws.py @@ -99,6 +99,8 @@ CELERY_QUEUES = { with open(ENV_ROOT / CONFIG_PREFIX + "env.json") as env_file: ENV_TOKENS = json.load(env_file) +PLATFORM_NAME = ENV_TOKENS['PLATFORM_NAME'] + SITE_NAME = ENV_TOKENS['SITE_NAME'] SESSION_COOKIE_DOMAIN = ENV_TOKENS.get('SESSION_COOKIE_DOMAIN') diff --git a/lms/envs/common.py b/lms/envs/common.py index be869628cf..54acfa6a8c 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -31,6 +31,9 @@ from path import path from .discussionsettings import * ################################### FEATURES ################################### +# The display name of the platform to be used in templates/emails/etc. +PLATFORM_NAME = "edX" + COURSEWARE_ENABLED = True ENABLE_JASMINE = False