after "those" there was a pointer to the relevant line in logging.conf embedded in the web2py repository: unfortunately I can't help you further because I have no python available right now, so no web2py either ^_^
On Friday, March 8, 2013 3:29:16 PM UTC+1, weheh wrote: > > Sorry, I don't follow. Alter what to DEBUG? Don't know what that means. > Can you see anything wrong with my routes.py file that causes > www.mydomain.com/robots.txt to generate a 404 error? > > > On Friday, March 8, 2013 10:18:25 PM UTC+8, Niphlod wrote: >> >> for the logging part.... >> alter those to DEBUG >> https://github.com/web2py/web2py/blob/master/logging.example.conf#L59 >> https://github.com/web2py/web2py/blob/master/logging.example.conf#L99 >> >> and you should read it in the console. >> >> >> On Friday, March 8, 2013 3:08:22 PM UTC+1, weheh wrote: >>> >>> I'm a routes.py newbie! Amazing it's taken me this long to really dive >>> in. This should be trivial, but I'm struggling to get mydomain/robots.txt >>> to map to mydomain/static/robots.txt. In fact, none of my routes_in are >>> working. My non-working routes.py file: >>> >>> #!/usr/bin/python >>> # -*- coding: utf-8 -*- >>> >>> default_application = 'init' # ordinarily set in base routes.py >>> default_controller = 'default' # ordinarily set in app-specific >>> routes.py >>> default_function = 'index' # ordinarily set in app-specific >>> routes.py >>> >>> >>> routes_app = ( >>> (r'/(?P<app>mydomain|admin|appadmin|other)\b.*', r'\g<app>'), >>> (r'(.*)', r'myapp'), >>> (r'/?(.*)', r'myapp'), >>> ) >>> >>> >>> routes_in = ( >>> ('/favicon.ico', '/static/images/logo/favicon.ico'), >>> ('/robots.txt', '/static/robots.txt'), >>> ('/cgi-bin/foobar.py', '/newfoobar/index'), >>> ) >>> >>> >>> routes_out = ( >>> ('/static/robots.txt', 'robots.txt'), >>> ('/appadmin/(?P<any>.*)', '/\g<any>'), >>> ('/mydomain/(?P<any>.*)', '/\g<any>'), >>> ('/other/(?P<any>.*)', '/\g<any>'), >>> ) >>> >>> >>> logging = 'debug' >>> >>> >>> # Display 404 for all invalid server messages >>> routes_onerror = [ >>> ('*/*', '/mydomain/static/404.html'), >>> ] >>> >>> >>> Also, I would like to know what the logging='debug' does? Where does the >>> log file go? >>> >> -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

