How To Determine If Your App Is Running On Local Python Development Server?
I need to programatically determine if my app is running in development or not, so that I can provide sandbox values for a variety of constants and methods. Something like: if app.
Solution 1:
import os
DEV = os.environ['SERVER_SOFTWARE'].startswith('Development')
Post a Comment for "How To Determine If Your App Is Running On Local Python Development Server?"