old_contents: from totalimpact import default_settings
  import os, logging, sys
  import analytics
  from flask import Flask
  from flask_sqlalchemy import SQLAlchemy
  
  
  # see http://wiki.pylonshq.com/display/pylonscookbook/Alternative+logging+configuration
  logging.basicConfig(
      stream=sys.stdout,
      level=logging.DEBUG,
      format='[%(process)d] %(levelname)8s %(threadName)30s %(name)s - %(message)s'
  )
  
  logger = logging.getLogger("ti")
  
  
  app = Flask(__name__)
  app.config.from_object(default_settings)
  
  app.config["SQLALCHEMY_DATABASE_URI"] = os.getenv("POSTGRESQL_URL")
  app.config["SQLALCHEMY_POOL_SIZE"] = 10
  #app.config["SQLALCHEMY_ECHO"] = True
  
  db = SQLAlchemy(app)
  
  # segment.io logging
  analytics.init(os.getenv("SEGMENTIO_PYTHON_KEY"))
  analytics.identify("CORE", {
  				       'internal': True,
  				       'name': 'IMPACTSTORY CORE'})
  
  from totalimpact import views
  
new_contents: from totalimpact import default_settings
  import os, logging, sys
  import analytics
  from flask import Flask
  from flask_sqlalchemy import SQLAlchemy
  
  
  # see http://wiki.pylonshq.com/display/pylonscookbook/Alternative+logging+configuration
  logging.basicConfig(
      stream=sys.stdout,
      level=logging.DEBUG,
      format='[%(process)d] %(levelname)8s %(threadName)30s %(name)s - %(message)s'
  )
  
  logger = logging.getLogger("ti")
  
  
  app = Flask(__name__)
  app.config.from_object(default_settings)
  
  app.config["SQLALCHEMY_DATABASE_URI"] = os.getenv("POSTGRESQL_URL")
  app.config["SQLALCHEMY_POOL_SIZE"] = 50
  #app.config["SQLALCHEMY_ECHO"] = True
  
  db = SQLAlchemy(app)
  
  # segment.io logging
  analytics.init(os.getenv("SEGMENTIO_PYTHON_KEY"))
  analytics.identify("CORE", {
  				       'internal': True,
  				       'name': 'IMPACTSTORY CORE'})
  
  from totalimpact import views
  
subject: increase SQLALCHEMY_POOL_SIZE to 50