https://github.com/dimagi/core-hq/blob/master/corehq/util/context_processors.py#L4
https://github.com/dimagi/commcare-hq/blob/master/settings.py#L100
https://github.com/dimagi/dimagi-utils/blob/master/dimagi/utils/web.py#L27

It is a bad state of affairs that requires me to use a custom render function which has a bunch of dead code just to have a template that extends from the base template, and this is the first step to fixing it.