use only one conf param

This commit is contained in:
Rocky Duan
2012-08-16 13:43:48 -07:00
parent 730d4d9485
commit c89e290cdd
2 changed files with 3 additions and 4 deletions

View File

@@ -34,10 +34,9 @@ from .discussionsettings import *
################################### FEATURES ###################################
COURSEWARE_ENABLED = True
ASKBOT_ENABLED = True
ASKBOT_ENABLED = False
GENERATE_RANDOM_USER_CREDENTIALS = False
PERFSTATS = False
DISCUSSION_SERVICE_ENABLED = True
# Features
MITX_FEATURES = {
@@ -53,7 +52,7 @@ MITX_FEATURES = {
'DARK_LAUNCH': False, # When True, courses will be active for staff only
'ENABLE_TEXTBOOK' : True,
'ENABLE_DISCUSSION' : True,
'ENABLE_DISCUSSION' : False,
'ENABLE_DISCUSSION_SERVICE': True,
'ENABLE_SQL_TRACKING_LOGS': False,

View File

@@ -156,7 +156,7 @@ if settings.COURSEWARE_ENABLED:
)
# discussion forums live within courseware, so courseware must be enabled first
if settings.DISCUSSION_SERVICE_ENABLED:
if settings.MITX_FEATURES.get('ENABLE_DISCUSSION_SERVICE'):
urlpatterns += (
url(r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/news$',