Might you want to put this into `cms/envs/common.py` as well?  How does this interact, since `student` and `external_auth` are in `common`?