I actually just added a commit that does that: https://github.com/edx/edx-platform/commit/8abaee3be5d92fd8e6479ee037dd73458bafe647

Django actually does make it pretty trivial.