On 23 Jul 2012, at 9:02 AM, Anthony wrote: > I think you have to list all the functions in the default controller if you > want the default function removed from the URL when there are URL args. Not > sure why it would work on localhost, though.
Yeah, but discussion is the function; it's default controller removal that isn't happening. > > Anthony > > On Monday, July 23, 2012 11:56:09 AM UTC-4, lyn2py wrote: > Massimo is right. > > I updated the routes.py (now both files are exactly the same) and now a > different problem. > > This is my routes.py file: > > routers = dict( > BASE = dict( > default_controller = 'default', > default_function = 'index' > ), > myapp = dict( > default_controller = 'default', > default_function = 'home' > ) > ) > > > Note: I only have 1 controller (default.py), and the function (discussion) is > in that controller > > On the local server, > the URL > http://127.0.0.1:8000/myapp/discussion/3/test-discussion > can access the webpage, no problem. > > On the production server, > http://productionurl.com/myapp/default/discussion/3/test-discussion > Note that on the production server, it requires "default" to access the > webpage, otherwise (if without the "default" in the URL), the error is > invalid controller (discussion/3) > > > What should I do? Thanks. > --

