Use settings.PIPELINE_ENABLED instead of settings.FEATURES[USE_DJANGO_PIPELINE].

This commit is contained in:
Usman Khalid
2015-10-06 19:41:56 +05:00
parent dbcd1bf430
commit 111a45664c
3 changed files with 2 additions and 6 deletions

View File

@@ -62,8 +62,6 @@ from xmodule.mixin import LicenseMixin
STUDIO_NAME = "Studio"
STUDIO_SHORT_NAME = "Studio"
FEATURES = {
'USE_DJANGO_PIPELINE': True,
'GITHUB_PUSH': False,
# for consistency in user-experience, keep the value of the following 3 settings

View File

@@ -22,7 +22,7 @@ except:
group = rtl_group
%>
% if settings.FEATURES['USE_DJANGO_PIPELINE']:
% if settings.PIPELINE_ENABLED:
${compressed_css(group, raw=raw)}
% else:
% for filename in settings.PIPELINE_CSS[group]['source_filenames']:
@@ -32,7 +32,7 @@ except:
</%def>
<%def name='js(group)'>
% if settings.FEATURES['USE_DJANGO_PIPELINE']:
% if settings.PIPELINE_ENABLED:
${compressed_js(group)}
% else:
% for filename in settings.PIPELINE_JS[group]['source_filenames']:

View File

@@ -64,8 +64,6 @@ DISCUSSION_SETTINGS = {
# Features
FEATURES = {
'USE_DJANGO_PIPELINE': True,
'DISPLAY_DEBUG_INFO_TO_STAFF': True,
'DISPLAY_HISTOGRAMS_TO_STAFF': False, # For large courses this slows down courseware access for staff.