@@ -145,32 +145,31 @@ def should_show_debug_toolbar(request): # lint-amnesty, pylint: disable=missing
145145WEBPACK_CONFIG_PATH = 'webpack.dev.config.js'
146146
147147########################### VERIFIED CERTIFICATES #################################
148-
149- FEATURES ['AUTOMATIC_VERIFY_STUDENT_IDENTITY_FOR_TESTING' ] = True
148+ AUTOMATIC_VERIFY_STUDENT_IDENTITY_FOR_TESTING = True
150149
151150########################### External REST APIs #################################
152- FEATURES [ ' ENABLE_OAUTH2_PROVIDER' ] = True
153- FEATURES [ ' ENABLE_MOBILE_REST_API' ] = True
154- FEATURES [ ' ENABLE_VIDEO_ABSTRACTION_LAYER_API' ] = True
151+ ENABLE_OAUTH2_PROVIDER = True
152+ ENABLE_MOBILE_REST_API = True
153+ ENABLE_VIDEO_ABSTRACTION_LAYER_API = True
155154
156155########################## SECURITY #######################
157- FEATURES [ ' ENABLE_MAX_FAILED_LOGIN_ATTEMPTS' ] = False
158- FEATURES [ ' SQUELCH_PII_IN_LOGS' ] = False
159- FEATURES [ ' PREVENT_CONCURRENT_LOGINS' ] = False
156+ ENABLE_MAX_FAILED_LOGIN_ATTEMPTS = False
157+ SQUELCH_PII_IN_LOGS = False
158+ PREVENT_CONCURRENT_LOGINS = False
160159
161160########################### Milestones #################################
162- FEATURES [ ' MILESTONES_APP' ] = True
161+ MILESTONES_APP = True
163162
164163########################### Entrance Exams #################################
165- FEATURES [ ' ENTRANCE_EXAMS' ] = True
164+ ENTRANCE_EXAMS = True
166165
167166################################ COURSE LICENSES ################################
168- FEATURES [ ' LICENSING' ] = True
167+ LICENSING = True
169168
170169
171170########################## Courseware Search #######################
172- FEATURES [ ' ENABLE_COURSEWARE_SEARCH' ] = True
173- FEATURES [ ' ENABLE_COURSEWARE_SEARCH_FOR_COURSE_STAFF' ] = True
171+ ENABLE_COURSEWARE_SEARCH = True
172+ ENABLE_COURSEWARE_SEARCH_FOR_COURSE_STAFF = True
174173SEARCH_ENGINE = 'search.elastic.ElasticSearchEngine'
175174SEARCH_COURSEWARE_CONTENT_LOG_PARAMS = True
176175
@@ -183,11 +182,11 @@ def should_show_debug_toolbar(request): # lint-amnesty, pylint: disable=missing
183182]
184183
185184########################## Dashboard Search #######################
186- FEATURES [ ' ENABLE_DASHBOARD_SEARCH' ] = False
185+ ENABLE_DASHBOARD_SEARCH = False
187186
188187
189188########################## Certificates Web/HTML View #######################
190- FEATURES [ ' CERTIFICATES_HTML_VIEW' ] = True
189+ CERTIFICATES_HTML_VIEW = True
191190
192191
193192########################## Course Discovery #######################
@@ -209,14 +208,14 @@ def should_show_debug_toolbar(request): # lint-amnesty, pylint: disable=missing
209208 'language' : LANGUAGE_MAP ,
210209}
211210
212- FEATURES [ ' ENABLE_COURSE_DISCOVERY' ] = False
211+ ENABLE_COURSE_DISCOVERY = False
213212# Setting for overriding default filtering facets for Course discovery
214213# COURSE_DISCOVERY_FILTERS = ["org", "language", "modes"]
215- FEATURES [ ' COURSES_ARE_BROWSEABLE' ] = True
214+ COURSES_ARE_BROWSEABLE = True
216215HOMEPAGE_COURSE_MAX = 9
217216
218217# Software secure fake page feature flag
219- FEATURES [ ' ENABLE_SOFTWARE_SECURE_FAKE' ] = True
218+ ENABLE_SOFTWARE_SECURE_FAKE = True
220219
221220# Setting for the testing of Software Secure Result Callback
222221VERIFY_STUDENT ["SOFTWARE_SECURE" ] = {
@@ -230,14 +229,14 @@ def should_show_debug_toolbar(request): # lint-amnesty, pylint: disable=missing
230229
231230
232231########################## Shopping cart ##########################
233- FEATURES [ ' ENABLE_COSMETIC_DISPLAY_PRICE' ] = True
232+ ENABLE_COSMETIC_DISPLAY_PRICE = True
234233
235234######################### Program Enrollments #####################
236- FEATURES [ ' ENABLE_ENROLLMENT_RESET' ] = True
235+ ENABLE_ENROLLMENT_RESET = True
237236
238237########################## Third Party Auth #######################
239238
240- if FEATURES . get ( ' ENABLE_THIRD_PARTY_AUTH' ) and (
239+ if ENABLE_THIRD_PARTY_AUTH and (
241240 'common.djangoapps.third_party_auth.dummy.DummyBackend' not in AUTHENTICATION_BACKENDS
242241):
243242 AUTHENTICATION_BACKENDS = ['common.djangoapps.third_party_auth.dummy.DummyBackend' ] + list (AUTHENTICATION_BACKENDS )
@@ -300,7 +299,7 @@ def should_show_debug_toolbar(request): # lint-amnesty, pylint: disable=missing
300299LEARNER_HOME_MICROFRONTEND_URL = 'http://localhost:1996'
301300
302301###################### Cross-domain requests ######################
303- FEATURES [ ' ENABLE_CORS_HEADERS' ] = True
302+ ENABLE_CORS_HEADERS = True
304303CORS_ALLOW_CREDENTIALS = True
305304CORS_ORIGIN_WHITELIST = ()
306305CORS_ORIGIN_ALLOW_ALL = True
@@ -412,17 +411,15 @@ def should_show_debug_toolbar(request): # lint-amnesty, pylint: disable=missing
412411
413412############## Docker based devstack settings #######################
414413
415- FEATURES .update ({
416- 'AUTOMATIC_AUTH_FOR_TESTING' : True ,
417- 'ENABLE_DISCUSSION_SERVICE' : True ,
418- 'SHOW_HEADER_LANGUAGE_SELECTOR' : True ,
414+ AUTOMATIC_AUTH_FOR_TESTING = True
415+ ENABLE_DISCUSSION_SERVICE = True
416+ SHOW_HEADER_LANGUAGE_SELECTOR = True
419417
420- # Enable enterprise integration by default.
421- # See https://github.com/openedx/edx-enterprise/blob/master/docs/development.rst for
422- # more background on edx-enterprise.
423- # Toggle this off if you don't want anything to do with enterprise in devstack.
424- 'ENABLE_ENTERPRISE_INTEGRATION' : True ,
425- })
418+ # Enable enterprise integration by default.
419+ # See https://github.com/openedx/edx-enterprise/blob/master/docs/development.rst for
420+ # more background on edx-enterprise.
421+ # Toggle this off if you don't want anything to do with enterprise in devstack.
422+ ENABLE_ENTERPRISE_INTEGRATION = True
426423
427424ENABLE_MKTG_SITE = os .environ .get ('ENABLE_MARKETING_SITE' , True )
428425MARKETING_SITE_ROOT = os .environ .get ('MARKETING_SITE_ROOT' , 'http://localhost:8080' )
@@ -468,7 +465,7 @@ def should_show_debug_toolbar(request): # lint-amnesty, pylint: disable=missing
468465 'system_wide_roles.SystemWideRoleAssignment' ,
469466)
470467
471- if FEATURES . get ( ' ENABLE_ENTERPRISE_INTEGRATION' ) :
468+ if ENABLE_ENTERPRISE_INTEGRATION :
472469 SYSTEM_WIDE_ROLE_CLASSES .append (
473470 'enterprise.SystemWideEnterpriseUserRoleAssignment' ,
474471 )
@@ -504,8 +501,8 @@ def should_show_debug_toolbar(request): # lint-amnesty, pylint: disable=missing
504501# LOGGING['loggers']['django.db.backends'] = {'handlers': ['console'], 'level': 'DEBUG', 'propagate': False}
505502
506503################### Special Exams (Proctoring) and Prereqs ###################
507- FEATURES [ ' ENABLE_SPECIAL_EXAMS' ] = True
508- FEATURES [ ' ENABLE_PREREQUISITE_COURSES' ] = True
504+ ENABLE_SPECIAL_EXAMS = True
505+ ENABLE_PREREQUISITE_COURSES = True
509506
510507# Used in edx-proctoring for ID generation in lieu of SECRET_KEY - dummy value
511508# (ref MST-637)
0 commit comments