hrm.....i've not used the 'r' in my routes....i just put the strings in and it seems to do what i want.
on GAE you might rather do this in app.yaml as you save yourself loading web2py to serve a static file. cfh On Friday, August 17, 2012 8:14:08 PM UTC-7, spiffytech wrote: > > I'm trying to make routes.py send certain URLs to static files, but I > can't make it work on App Engine (neither the development server nor a > production deployment). The following route works with Rocket, and not App > Engine, failing with 'invalid request' : > > routes_in = ( > (r'.*stuff.txt.*', r'/init/static/stuff.txt'), > ) > # Tested as http://localhost:8080/stuff.txt > > http://localhost:8080/init/static/stuff.txt works on App Engine, which > means App Engine can at least see the file and knows what to do with it. > > I'm running web2py trunk commit a7268ff. > --