When restarting web2py with those 2 lines in routes.py, I'm getting this error:
File ".../web2py-v1.65.0/gluon/rewrite.py", line 43, in rewrite for (k, v) in symbols['routes_in']: ValueError: too many values to unpack On Jul 16, 8:23 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > Create a file web2py/routes.py and write in it: > > routes_in=('/(?P<a>.*)',('/myapplicationname/mycontrollername/$a'),) > routes_out=('/myapplicationname/mycontrollername/(?P<a>.*)',('/$a'),) > > On Jul 16, 10:16 pm, Dan <danbr...@gmail.com> wrote: > > > Is there a way to make the URLs used by a web2py application a bit > > simpler when running GAE? > > > for example, this is the URL when using web2py's standard settings: > > 1)http://myapp.appspot.com/myapplicationname/mycontrollername/myfunctio... > > > but it would be better to use this throughout (not simply a one-time > > redirect, but a persistent aliasing across all controllers and > > functions so that the user never sees "myapplicationname") : > > 2)http://myapp.appspot.com/mycontrollername/myfunctionname > > > or even simpler: > > 3)http://myapp.appspot.com/myfunctionname (which is defined in the > > "default.py" controller) > > > I've seen a few conversations about this, but am confused as to > > whether I should be working with GAE's app.yaml, or with web2py's > > routes.py. Are there any considerations I should keep in mind? > > > The reason for this is to shorten the URL to make it easier to > > remember and to be friendlier to search engine classification methods. > > > thanks > > Dan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---