This is there since 1.61.4 from gluon.settings import settings if settings.web2py_runtime=='gae:development': pass if settings.web2py_runtime=='gae:production' pass
On May 15, 10:41 am, Carl <[email protected]> wrote: > I need different application behaviour between instances running on > appengine and running locally. > > e.g., I'm embedding the domain name in emails: > > either:http://127.0.0.1:8000/app > orhttp://1.latest.domainname.com/app > orhttp://www.domainname.com/app > > where in web2py would you recommend I set "an instance flag? Is a flag > a good approach? > > thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

