super-easy. put this in a model of the app you want to disable (preferably the very first model, or create a 00000_a.py)
raise HTTP(503, "<html><body><h1>Temporarily down for maintenance</h1></body></html>") you got the gist: you can insert whatever html you want (i.e. app got migrated at url http:/// update your bookmarks...etc etc etc) On Wednesday, November 5, 2014 9:25:52 PM UTC+1, Willoughby wrote: > > Yes, we're still running v1.61.1 - why upgrade when it's not broken? :-D > But now we're in the process of decommissioning some apps while some need > to live a bit longer till eventually they all go away... > > Unfortunately this version does not have the 'enable/disable' button in > admin that newer web2py versions do. > What's the easiest way to do this? Via routes? This is an intranet setup > running CherryPy if that helps. > > Sorry for such a newbie question - I spend most of my day as a SQL dev and > know next to zero about serving up web pages. > > Thanks. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.