Merge pull request #526 from MITx/feature/forum_config

Feature/forum config
This commit is contained in:
arjun810
2012-08-23 05:07:11 -07:00
4 changed files with 8 additions and 3 deletions

View File

@@ -68,4 +68,4 @@ if 'COURSE_ID' in ENV_TOKENS:
ASKBOT_URL = "courses/{0}/discussions/".format(ENV_TOKENS['COURSE_ID'])
COMMENTS_SERVICE_URL = ENV_TOKENS["COMMENTS_SERVICE_URL"]
COMMENTS_SERVICE_KEY = ENV_TOKENS["COMMENTS_SERVICE_KEY"]

View File

@@ -92,6 +92,8 @@ SUBDOMAIN_BRANDING = {
'harvard': 'HarvardX',
}
COMMENTS_SERVICE_KEY = "PUT_YOUR_API_KEY_HERE"
################################ LMS Migration #################################
MITX_FEATURES['ENABLE_LMS_MIGRATION'] = True
MITX_FEATURES['ACCESS_REQUIRE_STAFF_FOR_COURSE'] = False # require that user be in the staff_* group to be able to enroll

View File

@@ -7,4 +7,7 @@ else:
PREFIX = SERVICE_HOST + '/api/v1'
API_KEY = "PUT_YOUR_API_KEY_HERE"
if hasattr(settings, "COMMENTS_SERVICE_KEY"):
API_KEY = settings.COMMENTS_SERVICE_KEY
else:
API_KEY = "PUT_YOUR_API_KEY_HERE"

View File

@@ -32,7 +32,7 @@
</section>
<section class="course-content">
${content}
${content.decode('utf-8')}
</section>
</div>
</section>