old_contents: ###############################################################################
  #                       Application to run DSCensor                           #
  #                      Connor Cameron (ctc@ncgr.org)                          #
  #                      Andrew Farmer  (adf@ncgr.org)                          #
  ###############################################################################
  
  import os
  import logging
  from logging import Formatter
  from logging import StreamHandler
  from panparser import panparser_prototype
  from client.templating import neo4j_dscensor_linkout
  from flask import Flask, request, session, g, redirect, url_for, abort, \
       render_template, flash
  
  LOGFILE = 'logs/dscensor.log'
  MAXLOGBYTES = 1024 * 1024
  MAXLOGFILES = 10
  
  # create flask app
  app = Flask(__name__, template_folder='client')
  app.config.from_object(__name__)
  app.config.update(dict(
      API_PATH='/api/v1',
  #    HOST = '//0.0.0.0',
      HOST = '//wright',
      PORT = 7687,
      AUTH = 'censor',
      PSWD = 'CensorMe123'
  #    AUTH = 'neo4j',
  #    PSWD = 'neo4j'
  ))
  # server
  app.domain="http://dev.lis.ncgr.org:50020"
  app.panparser = panparser_prototype.main()  # get pan parser datastructures in memory
  app.main_panset = 'glysp.mixed.pan2.TV81'  # glycine main panset
  # WILL FILL HERE FOR INITIAL DATA an api view will be required here to serve it
  
  msg_format = '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
  formatter = Formatter(msg_format)
  handler = StreamHandler()
  handler.setFormatter(formatter)
  
  if app.debug:
      handler.setLevel(logging.DEBUG)
  else:
      handler.setLevel(logging.INFO)
  # Also add the handler to gunicorns loggers and
  # let app see the handler for logging inside views
  gunicorn_error = logging.getLogger('gunicorn.error')
  gunicorn_access = logging.getLogger('gunicorn.access')
  gunicorn_error.addHandler(handler)
  gunicorn_access.addHandler(handler)
  app.logger.addHandler(handler)
  
  import views
  
  # this exists for gunicorn invocation
  if __name__ == '__main__':
      app.run()
  
new_contents: ###############################################################################
  #                       Application to run DSCensor                           #
  #                      Connor Cameron (ctc@ncgr.org)                          #
  #                      Andrew Farmer  (adf@ncgr.org)                          #
  ###############################################################################
  
  import os
  import logging
  from logging import Formatter
  from logging import StreamHandler
  from panparser import panparser_prototype
  from client.templating import neo4j_dscensor_linkout
  from flask import Flask, request, session, g, redirect, url_for, abort, \
       render_template, flash
  
  LOGFILE = 'logs/dscensor.log'
  MAXLOGBYTES = 1024 * 1024
  MAXLOGFILES = 10
  
  # create flask app
  app = Flask(__name__, template_folder='client')
  app.config.from_object(__name__)
  app.config.update(dict(
      API_PATH='/api/v1',
      HOST = os.environ['HOST'],
      PORT = os.environ['PORT'],
      AUTH = os.environ['AUTH'],
      PSWD = os.environ['PSWD']
  ))
  # server
  app.domain="http://dev.lis.ncgr.org:50020"
  app.panparser = panparser_prototype.main()  # get pan parser datastructures in memory
  app.main_panset = 'glysp.mixed.pan2.TV81'  # glycine main panset
  # WILL FILL HERE FOR INITIAL DATA an api view will be required here to serve it
  
  msg_format = '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
  formatter = Formatter(msg_format)
  handler = StreamHandler()
  handler.setFormatter(formatter)
  
  if app.debug:
      handler.setLevel(logging.DEBUG)
  else:
      handler.setLevel(logging.INFO)
  # Also add the handler to gunicorns loggers and
  # let app see the handler for logging inside views
  gunicorn_error = logging.getLogger('gunicorn.error')
  gunicorn_access = logging.getLogger('gunicorn.access')
  gunicorn_error.addHandler(handler)
  gunicorn_access.addHandler(handler)
  app.logger.addHandler(handler)
  
  import views
  
  # this exists for gunicorn invocation
  if __name__ == '__main__':
      app.run()
  
subject: Set neo4j connection info w/ environment variables