On 16 Oct 2012, at 2:27 AM, apinho <jaapi...@sapo.pt> wrote: > Using web2py, straight out of the box, no routes.py or such : > > When i request : > https://myserver/myapp/mycontroller/myfunction > > having /models/models.py : > ... > default_application = 'myapp' > ... > > > > and /controllers/mycontroller.py : > def myfunction(): > # no pasa nada > return dict() > > Web2py answers : > invalid function (default/mycontroller) > > So, he is looking for function mycontroller, inside controller default.py, > instead of looking for function myfunction, inside controllermycontroller.py. > > Why ? What I am missing ? > >
You can't set the default application in your model. It's too late; the routing is already done. But you should still be able to access myapp explicitly. Do you have a directory: applications/myapp with the above models and controller in it? --