this thread might be helpful in chasing down the problem: Use services.mako.settings instead? - #8 by sheeeng