old_contents: #!/usr/bin/python
  
  from flask import Flask
  from flask_sqlalchemy import SQLAlchemy
  from flask_login import LoginManager
  from flask_wtf import CsrfProtect
  
  c3bottles = Flask(__name__,
      static_folder="../static",
      template_folder="../templates"
  )
  
  # We need to set this here to prevent the depreciation warning
  c3bottles.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False
  
  def load_config():
      c3bottles.config.from_object("config")
  
  db = SQLAlchemy(c3bottles)
  
  lm = LoginManager(c3bottles)
  
  csrf = CsrfProtect(c3bottles)
  
  # Trim and strip blocks in jinja2 so no unnecessary
  # newlines and tabs appear in the output:
  c3bottles.jinja_env.trim_blocks = True
  c3bottles.jinja_env.lstrip_blocks = True
  
  from view.api import api
  from view.main import index, faq, dp_list, dp_map, dp_view
  from view.create import create_dp
  from view.edit import edit_dp
  from view.report import report
  from view.visit import visit
  from view.user import login, logout
  from view.statistics import stats
  c3bottles.register_blueprint(api)
  c3bottles.register_blueprint(stats)
  
  # vim: set expandtab ts=4 sw=4:
  
new_contents: #!/usr/bin/python
  
  from flask import Flask
  from flask_sqlalchemy import SQLAlchemy
  from flask_login import LoginManager
  from flask_wtf import CSRFProtect
  
  c3bottles = Flask(__name__,
      static_folder="../static",
      template_folder="../templates"
  )
  
  # We need to set this here to prevent the depreciation warning
  c3bottles.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False
  
  def load_config():
      c3bottles.config.from_object("config")
  
  db = SQLAlchemy(c3bottles)
  
  lm = LoginManager(c3bottles)
  
  csrf = CSRFProtect(c3bottles)
  
  # Trim and strip blocks in jinja2 so no unnecessary
  # newlines and tabs appear in the output:
  c3bottles.jinja_env.trim_blocks = True
  c3bottles.jinja_env.lstrip_blocks = True
  
  from view.api import api
  from view.main import index, faq, dp_list, dp_map, dp_view
  from view.create import create_dp
  from view.edit import edit_dp
  from view.report import report
  from view.visit import visit
  from view.user import login, logout
  from view.statistics import stats
  c3bottles.register_blueprint(api)
  c3bottles.register_blueprint(stats)
  
  # vim: set expandtab ts=4 sw=4:
  
subject: Resolve flask-wtf deprecation warning