-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #487 from edx/dcs/pluggableapp
Enables the use of the Open edX Pluggable Django App framework
- Loading branch information
Showing
23 changed files
with
272 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ parallel = True | |
source = edx_proctoring | ||
omit = | ||
*/migrations/* | ||
edx_proctoring/settings/* | ||
edx_proctoring/admin.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
"Pluggable Django App settings for production" | ||
|
||
|
||
def plugin_settings(settings): | ||
"Injects local settings into django settings" | ||
auth_tokens = getattr(settings, 'AUTH_TOKENS', {}) | ||
env_tokens = getattr(settings, 'ENV_TOKENS', {}) | ||
if env_tokens.get('PROCTORING_SETTINGS'): | ||
settings.PROCTORING_SETTINGS = env_tokens['PROCTORING_SETTINGS'] | ||
if auth_tokens.get('PROCTORING_BACKENDS'): | ||
settings.PROCTORING_BACKENDS = auth_tokens['PROCTORING_BACKENDS'] | ||
elif env_tokens.get('PROCTORING_BACKENDS'): | ||
settings.PROCTORING_BACKENDS = env_tokens['PROCTORING_BACKENDS'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
"Common Pluggable Django App settings" | ||
|
||
|
||
def plugin_settings(settings): | ||
"Injects local settings into django settings" | ||
settings.PROCTORING_SETTINGS = {} | ||
settings.PROCTORING_BACKENDS = { | ||
'DEFAULT': 'null', | ||
'null': {}, | ||
} | ||
proctoring_js = ( | ||
[ | ||
'proctoring/js/models/proctored_exam_allowance_model.js', | ||
'proctoring/js/models/proctored_exam_attempt_model.js', | ||
'proctoring/js/models/proctored_exam_model.js', | ||
'proctoring/js/collections/proctored_exam_allowance_collection.js', | ||
'proctoring/js/collections/proctored_exam_attempt_collection.js', | ||
'proctoring/js/collections/proctored_exam_collection.js', | ||
'proctoring/js/views/Backbone.ModalDialog.js', | ||
'proctoring/js/views/proctored_exam_add_allowance_view.js', | ||
'proctoring/js/views/proctored_exam_allowance_view.js', | ||
'proctoring/js/views/proctored_exam_attempt_view.js', | ||
'proctoring/js/views/proctored_exam_view.js', | ||
'proctoring/js/views/proctored_exam_instructor_launch.js', | ||
'proctoring/js/proctored_app.js', | ||
'proctoring/js/exam_action_handler.js' | ||
] | ||
) | ||
settings.PIPELINE_JS['proctoring'] = { | ||
'source_filenames': proctoring_js, | ||
'output_filename': 'js/lms-proctoring.js', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
"Pluggable Django App settings for test" | ||
|
||
|
||
def plugin_settings(settings): | ||
"Injects local settings into django settings" | ||
settings.PROCTORING_SETTINGS = {} | ||
settings.PROCTORING_BACKENDS = { | ||
'DEFAULT': 'mock', | ||
'mock': {}, | ||
'mock_proctoring_without_rules': {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.