I tried your suggestion and tracked the error to the following line which was in my db.py:
from gluon.sqlhtml import * I guess this import overrided the URL function. When I took it out, everything works. Thanks so much for your patience and helping me get through this issue so methodically! The web2py community is quite exceptional. Avik On Sep 18, 7:07 pm, Jonathan Lundell <jlund...@pobox.com> wrote: > I should also mention that if I were able to reproduce the problem here, I'd > look at it with a debugger, watching URL in the global namespace of a > request. So if that's a possibility....