Skip to content

Instantly share code, notes, and snippets.

@efischer19
Last active November 2, 2017 20:16
Show Gist options
  • Save efischer19/715115ddc1c53c4d426c1b0c31388ec0 to your computer and use it in GitHub Desktop.
Save efischer19/715115ddc1c53c4d426c1b0c31388ec0 to your computer and use it in GitHub Desktop.
this maybe works
- clone edx/edx-proctoring into the ../src/ directory (relative to devstack)
- do the following twice, once in lms-shell and once in studio-shell:
- modify lms.env.json, the value for ENABLE_SPECIAL_EXAMS needs to be true (does not persist, will revert once you stop your container)
- modify cms.env.json, the value for ENABLE_SPECIAL_EXAMS needs to be true (does not persist, will revert once you stop your container)
- pip install -e /edx/src/edx-proctoring/ (might persist across container restarts, not sure, Leaning no)
- quit the shell, then `make (lms|studio)-restart` to restart the main django process.
- now, navigate to http://localhost:18010/settings/advanced/course-v1:edX+DemoX+Demo_Course in your browser (obvi, use a different course if needed)
- set "Enable Proctored Exams" and "Enable Timed Exams" to true there
- now we need to do stuff on an admin menu.
- do this if you've never created an admin user
- from lms-shell (or cms-shell, this is db-backed so you only need 1):
- echo "from django.contrib.auth.models import User; User.objects.create_superuser('admin', 'admin@example.com', 'edx')" | ./manage.py lms --settings=devstack_docker shell
- hit http://localhost:18010/admin/course_modes/coursemode/, and create 'verified' mode for the course you care about (possibly optional - verified mode already existed for the demo course for me)
- logout, and hit http://edx.devstack.lms:18000/
- The following is a terrible hack, because I can't get verification working properly. Feel free to hammer id verifcation into place if you want to do that instead.
- edit _check_eligibility_of_enrollment_mode (in edx_proctoring/api.py) to always return True. Don't check this change in.
I still had to hit http://localhost:18000/admin/verify_student/softwaresecurephotoverification/ to update the verification, idk what's up there
Stop following these instructions, they're terribly hacky. You've been warned.
I had to do this in SQL: mysql> update proctoring_proctoredexamstudentattempt set status='ready_to_start' where id=1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment