One crude way to tell if you're running locally or not: if self.request.host_url != "http://localhost:8080": # Assume live server
On Dec 8, 6:28 pm, Alex Popescu <[email protected]> wrote: > On Dec 9, 1:25 am, Alex Popescu <[email protected]> > wrote: > > > > > Hi guys, > > > I am wondering if there is a 'recommended' solution for enabling a set > > of URIs when the app is running locally for testing purposes. > > > Until recently I had a setup which was defining additional URI > > mappings in a _localsettings.py module and this was set for exclusion > > in app.yaml. > > But it looks like a change in the SDK is now ignoring all modules > > excluded in app.yaml so I lost this feature. > > > Any ideas? > > > tia, > > > ./alex > > In fact, I had many more overwriting constants/functions defined in > this module to allow me to debug/etc. All this seems to be gone. > > Is there a way to determine if the app is running locally or remotely > through an API call? I guess that would be the only way I could get > this features back. > > ./alex -- You received this message because you are subscribed to the Google Groups "Google App Engine" 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/google-appengine?hl=en.
