If AuthenticatedHttpRequest lives in the hc.lib.typealias module then hc.lib.typealias imports User and Profile, and so needs configured Django settings. Most of the stuff in hc.lib is intended to work standalone, and not rely on Django.