Mind it does not work on GAE. On Sunday, 25 November 2012 03:28:57 UTC-6, mweissen wrote: > > > > 2012/11/25 howesc <how...@umich.edu <javascript:>> > >> Martin, >> >> 1. i didn't know about maintenance mode....how do you trigger it? i >> suspect there is a way to route it to use a particular set of view(s).... >> > > Howesc, it's the enable / disable button to be found on the admin page. > >> >> 2. there is a request.is_local i believe that is set if the request is >> from the same server as the process serving the request. that should be >> what you want (once you get the request past the maintenance mode message. >> > > Ok, I'll try it. > >> >> cfh >> >> >> On Saturday, November 24, 2012 7:35:27 AM UTC-8, mweissen wrote: >>> >>> Hi, >>> >>> I know there is a maintenance mode, but I need a liitle bit more: >>> >>> (1) If the maintenance mode is switched on the user sees >>> Temporarily down for maintenance >>> >>> But it would be nice to have a page with the same layout as the original >>> page. >>> >>> >>> (2) If the maintenance mode is switched on it is possible to use web2py >>> with the local address 127.0.0.1 >>> >>> My web2py server has two lan-cards: one for the external ip-address, one >>> for the lan (192.168....). >>> Is there a way >>> >>> - to show the maintenance message for visitors using lan card 1 >>> (with the external ip address) and >>> - to work with the application using lan card 2 (with an internal ip >>> address)? >>> >>> >>> Regards Martin >>> >>> -- >> >> >
--