Add the `/admin` url to exceptions when redirecting.
Add the `student_testing.middleware` to `distributed.settings`.
Refactor to check for url exceptions first before proceeding to check for the `EXAM_MODE_ON` setting.