On Dec 9, 6:01 am, dburns <drrnb...@gmail.com> wrote: > One crude way to tell if you're running locally or not: > > if self.request.host_url != "http://localhost:8080": > # Assume live server >
That's a good idea but it applies only at the request/response level. What I need is something at the application/startup level. I am pretty sure that I could find a local import that might tell me that the app is using the SDK, but that seems like a really "dirty" solution and I'm pretty sure the Googlers have some hints ;-). ./.alex > On Dec 8, 6:28 pm, Alex Popescu <the.mindstorm.mailingl...@gmail.com> > wrote: > > > > > On Dec 9, 1:25 am, Alex Popescu <the.mindstorm.mailingl...@gmail.com> > > 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 google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.