old_contents: from flask import Flask
  from flask import redirect
  from flask_sqlalchemy import SQLAlchemy
  from flask_migrate import Migrate
  import structlog
  
  app = Flask(__name__)
  
  app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False
  
  db = SQLAlchemy(app)
  migrate = Migrate(app, db)
  logger = structlog.get_logger()
  
  # pylint: disable=C0413
  
  from conditional.blueprints.dashboard import dashboard_bp
  from conditional.blueprints.attendance import attendance_bp
  from conditional.blueprints.major_project_submission import major_project_bp
  from conditional.blueprints.intro_evals import intro_evals_bp
  from conditional.blueprints.intro_evals_form import intro_evals_form_bp
  from conditional.blueprints.housing import housing_bp
  from conditional.blueprints.spring_evals import spring_evals_bp
  from conditional.blueprints.conditional import conditionals_bp
  from conditional.blueprints.member_management import member_management_bp
  from conditional.blueprints.slideshow import slideshow_bp
  
  app.register_blueprint(dashboard_bp)
  app.register_blueprint(attendance_bp)
  app.register_blueprint(major_project_bp)
  app.register_blueprint(intro_evals_bp)
  app.register_blueprint(intro_evals_form_bp)
  app.register_blueprint(housing_bp)
  app.register_blueprint(spring_evals_bp)
  app.register_blueprint(conditionals_bp)
  app.register_blueprint(member_management_bp)
  app.register_blueprint(slideshow_bp)
  
  logger.info('conditional started')
  
  
  @app.route('/<path:path>')
  def static_proxy(path):
      # send_static_file will guess the correct MIME type
      return app.send_static_file(path)
  
  
  @app.route('/')
  def default_route():
      return redirect('/dashboard')
  
  
  @app.cli.command()
  def zoo():
      from conditional.models.migrate import free_the_zoo
      free_the_zoo(app.config['ZOO_DATABASE_URI'])
  
new_contents: from flask import Flask
  from flask import redirect
  from flask_sqlalchemy import SQLAlchemy
  from flask_migrate import Migrate
  import structlog
  
  app = Flask(__name__)
  
  app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False
  
  db = SQLAlchemy(app)
  migrate = Migrate(app, db)
  logger = structlog.get_logger()
  
  # pylint: disable=C0413
  
  from conditional.blueprints.dashboard import dashboard_bp
  from conditional.blueprints.attendance import attendance_bp
  from conditional.blueprints.major_project_submission import major_project_bp
  from conditional.blueprints.intro_evals import intro_evals_bp
  from conditional.blueprints.intro_evals_form import intro_evals_form_bp
  from conditional.blueprints.housing import housing_bp
  from conditional.blueprints.spring_evals import spring_evals_bp
  from conditional.blueprints.conditional import conditionals_bp
  from conditional.blueprints.member_management import member_management_bp
  from conditional.blueprints.slideshow import slideshow_bp
  
  app.register_blueprint(dashboard_bp)
  app.register_blueprint(attendance_bp)
  app.register_blueprint(major_project_bp)
  app.register_blueprint(intro_evals_bp)
  app.register_blueprint(intro_evals_form_bp)
  app.register_blueprint(housing_bp)
  app.register_blueprint(spring_evals_bp)
  app.register_blueprint(conditionals_bp)
  app.register_blueprint(member_management_bp)
  app.register_blueprint(slideshow_bp)
  
  logger.info('conditional started')
  
  # pylint: disable=C0413
  
  from db.models import EvalSettings
  
  if EvalSettings.query.first() is None:
      logger.info("Generating Initial Site Settings")
      db.add(EvalSettings())
      db.flush()
      db.commit()
  
  
  @app.route('/<path:path>')
  def static_proxy(path):
      # send_static_file will guess the correct MIME type
      return app.send_static_file(path)
  
  
  @app.route('/')
  def default_route():
      return redirect('/dashboard')
  
  
  @app.cli.command()
  def zoo():
      from conditional.models.migrate import free_the_zoo
      free_the_zoo(app.config['ZOO_DATABASE_URI'])
  
subject: Add default site settings check