text: from flask import Flask
  from flask_jwt import JWT, jwt_required
  from flask_jwt_extended import (
      JWTManager, jwt_required, create_access_token,
      jwt_refresh_token_required, create_refresh_token,
      get_jwt_identity
  )
  import os,sys
  from dotenv import load_dotenv
  
  LOCALPATH = os.path.dirname(os.path.abspath(__file__))
  sys.path.insert(0, LOCALPATH + '/../../../')
  # Local imports now
  
  from app.api.v2.db import Db
  from app.config import app_config
  
  def create_app(config_name):
      app = Flask(__name__)
      app.config.from_object(app_config[config_name])
      from app import api_bp, api_bp2, api_bp3
      app.config['JWT_SECRET_KEY'] = os.getenv('JWT_SECRET_KEY')
      jwt = JWTManager(app)
      # Db().drops()
      Db().creates()
      app.register_blueprint(api_bp, url_prefix='/dann/api/v1')
      app.register_blueprint(api_bp2, url_prefix='/dann/api/v2')
      app.register_blueprint(api_bp3, url_prefix='/')
  
      return app
  
  application = create_app(os.getenv('APP_SETTINGS'))
  
  if __name__ == "__main__":
      # config_name = "testing"
      # config_name = os.getenv('APP_SETTINGS')
      # app = create_app(config_name)
      port = int(os.environ.get('PORT', 5000))
      application.run(port=port, debug=True)
  