old_contents: import os
  
  from flask import Flask, render_template
  from flask_sqlalchemy import SQLAlchemy
  from flask_script import Manager
  from flask_migrate import Migrate, MigrateCommand
  
  BASE_DIR = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
  
  SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(BASE_DIR, 'app.db')
  
  DEBUG = True
  SECRET_KEY = 'A0Zr98j/3yX R~XHH!jmN]LWX/,?RT'
  USERNAME = 'admin'
  PASSWORD = 'password'
  
  
  app = Flask(__name__)
  
  
  @app.errorhandler(404)
  def err404(error):
      return render_template('error.html', error=error), 404
  
  
  app.config.from_object(__name__)
  app.config.from_envvar('CORRECTOR_SETTINGS', silent=True)
  db = SQLAlchemy(app)
  migrate = Migrate(app, db)
  
  manager = Manager(app)
  manager.add_command('db', MigrateCommand)
  
  from iliasCorrector import views, models
  
new_contents: import os
  
  from flask import Flask, render_template
  from flask_sqlalchemy import SQLAlchemy
  from flask_script import Manager
  from flask_migrate import Migrate, MigrateCommand
  
  BASE_DIR = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
  
  SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(BASE_DIR, 'app.db')
  
  DEBUG = True
  SECRET_KEY = 'A0Zr98j/3yX R~XHH!jmN]LWX/,?RT'
  SQLALCHEMY_TRACK_MODIFICATIONS = False
  
  
  app = Flask(__name__)
  
  
  @app.errorhandler(404)
  def err404(error):
      return render_template('error.html', error=error), 404
  
  
  app.config.from_object(__name__)
  app.config.from_envvar('CORRECTOR_SETTINGS', silent=True)
  db = SQLAlchemy(app)
  migrate = Migrate(app, db)
  
  manager = Manager(app)
  manager.add_command('db', MigrateCommand)
  
  from iliasCorrector import views, models
  
subject: Fix warning about sqlalchemy