Hello, what's the best property to use on 'request' for determining
what environment the app is running in?  I've tried
request.env.remote_addr but it doesn't appear to be a reliable way to
distinguish. Currently I'm just using sys.platform since I'm
developing on windows and my server is linux--obviously this isn't
good for a lot of reasons, not least because I also need to
differentiate now between staging and production environments both on
the linux server.

Thanks.

-Dane

Reply via email to