old_contents: import os
  from flask import Flask, render_template
  from config import SQLALCHEMY_DATABASE_URI
  from flask_sqlalchemy import SQLAlchemy
  # NB! Should be disabled in production
  from pyinfo import info
  
  app = Flask(__name__)
  
  app.secret_key = os.urandom(24)
  app.config['SQLALCHEMY_DATABASE_URI'] = SQLALCHEMY_DATABASE_URI
  app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True
  os.environ['DEBUG'] = "1"
  os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = '1'
  
  
  @app.route('/pyinfo')
  def pyinfo():
      return render_template('pyinfo.html', **info)
  
  
  db = SQLAlchemy(app)
  # flake8: noqa
  from authcontroller import *
  
  if __name__ == "__main__":
      # This allows us to use a plain HTTP callback
      os.environ['DEBUG'] = "1"
      os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = '1'
      app.secret_key = os.urandom(24)
      app.run(debug=True, port=5000)
  
new_contents: import os
  from flask import Flask, render_template
  from config import SQLALCHEMY_DATABASE_URI
  from flask_sqlalchemy import SQLAlchemy
  # NB! Should be disabled in production
  from pyinfo import info
  
  app = Flask(__name__)
  
  app.secret_key = os.urandom(24)
  # NB! Disable in production
  pp.config['TESTING'] = True
  app.config['SQLALCHEMY_DATABASE_URI'] = SQLALCHEMY_DATABASE_URI
  app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True
  os.environ['DEBUG'] = "1"
  os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = '1'
  
  
  @app.route('/pyinfo')
  def pyinfo():
      return render_template('pyinfo.html', **info)
  
  
  db = SQLAlchemy(app)
  # flake8: noqa
  from authcontroller import *
  
  if __name__ == "__main__":
      # This allows us to use a plain HTTP callback
      os.environ['DEBUG'] = "1"
      os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = '1'
      app.secret_key = os.urandom(24)
      app.run(debug=True, port=5000)
  
subject: enable DEBUG for development env [skip ci]