Did I find the right examples for you? yes no

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)
Return whether the application environment is in development mode.

        def is_dev():
    """Return whether the application environment is in development mode."""
    return os.environ['SERVER_SOFTWARE'].startswith('Dev')
        


src/c/l/clo-summit-HEAD/app/lib/console/app/controller/console.py   clo-summit(Download)
        self.values['path']       = path
        self.values['admin']      = users.is_current_user_admin()
        self.values['is_dev']     = util.is_dev()
        self.values['log_in']     = users.create_login_url(path)
        self.values['log_out']    = users.create_logout_url(path)
    def get(self):
        if util.is_dev():
            options = ['Development', 'Production']
            #self.values['dashboard_url'] = '/_ah/admin'
            #self.values['settings'] = [ {'type':'link', 'name':'Production Dashboard',

src/m/i/mils-secure-HEAD/app/console/app/controller/console.py   mils-secure(Download)
        self.values['path']       = path
        self.values['admin']      = users.is_current_user_admin()
        self.values['is_dev']     = util.is_dev()
        self.values['log_in']     = users.create_login_url(path)
        self.values['log_out']    = users.create_logout_url(path)
    def get(self):
        if util.is_dev():
            options = ['Development', 'Production']
            #self.values['dashboard_url'] = '/_ah/admin'
            #self.values['settings'] = [ {'type':'link', 'name':'Production Dashboard',

src/c/l/clo-summit-HEAD/app/lib/console/app/console.py   clo-summit(Download)
from google.appengine.ext.webapp.util import run_wsgi_app
 
debug = util.is_dev()
application = webapp.WSGIApplication([
    ('/'                  , controller.Root),

src/m/i/mils-secure-HEAD/app/console/app/console.py   mils-secure(Download)
from google.appengine.ext.webapp.util import run_wsgi_app
 
debug = util.is_dev()
application = webapp.WSGIApplication([
    ('/'                  , controller.Root),