4.16.1. Configuring ORA2 to Upload Files to Alternative Storage Systems#
By default, the Open Response Assessment (ORA2) application stores files that learners upload in an Amazon S3 bucket.
You can configure ORA2 to store files in an alternate system. To have learners’ files stored in a system other than Amazon S3, follow these steps.
In the ORA-2 repository, implement the
BaseBackendclass defined in the base.py file.
For example, the S3.py file in the same directory is an implementation of
BaseBackendfor Amazon S3. You must implement the equivalent class for the storage system you intend to use.
Configure ORA2 to use your alternative storage system by modifying the value of
backend_settingin init file to point to your implementation of
Add code to instantiate the new implementation to the
get_backend()function in the
Configure ORA2 to use the alternative storage system by modifying the value of
ORA2_FILEUPLOAD_BACKENDin the Django settings to point to your implementation of