Moved helper code from init.rv to the appropriate places. I still think the keymap has to be in settings.py too though.