text: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  import os
  
  from flask import Flask
  
  
  def create_app(test_config=None):
      app = Flask(__name__, instance_relative_config=True)
      app.config.from_mapping(
          SECRET_KEY='dev',
      )
  
      if test_config is None:
          pass
      else:
          app.config.from_mapping(test_config)
  
      try:
          os.makedirs(app.instance_path)
      except OSError:
          pass
  
      from .route.admin import admin_bp
      app.register_blueprint(admin_bp)
  
      return app
  