Commit c89e290c by Rocky Duan

use only one conf param

parent 730d4d94
...@@ -34,10 +34,9 @@ from .discussionsettings import * ...@@ -34,10 +34,9 @@ from .discussionsettings import *
################################### FEATURES ################################### ################################### FEATURES ###################################
COURSEWARE_ENABLED = True COURSEWARE_ENABLED = True
ASKBOT_ENABLED = True ASKBOT_ENABLED = False
GENERATE_RANDOM_USER_CREDENTIALS = False GENERATE_RANDOM_USER_CREDENTIALS = False
PERFSTATS = False PERFSTATS = False
DISCUSSION_SERVICE_ENABLED = True
# Features # Features
MITX_FEATURES = { MITX_FEATURES = {
...@@ -53,7 +52,7 @@ MITX_FEATURES = { ...@@ -53,7 +52,7 @@ MITX_FEATURES = {
'DARK_LAUNCH': False, # When True, courses will be active for staff only 'DARK_LAUNCH': False, # When True, courses will be active for staff only
'ENABLE_TEXTBOOK' : True, 'ENABLE_TEXTBOOK' : True,
'ENABLE_DISCUSSION' : True, 'ENABLE_DISCUSSION' : False,
'ENABLE_DISCUSSION_SERVICE': True, 'ENABLE_DISCUSSION_SERVICE': True,
'ENABLE_SQL_TRACKING_LOGS': False, 'ENABLE_SQL_TRACKING_LOGS': False,
......
...@@ -156,7 +156,7 @@ if settings.COURSEWARE_ENABLED: ...@@ -156,7 +156,7 @@ if settings.COURSEWARE_ENABLED:
) )
# discussion forums live within courseware, so courseware must be enabled first # 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 += ( urlpatterns += (
url(r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/news$', url(r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/news$',
......
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