text: import os
  
  
  class Config(object):
      """Parent configuration class."""
      DEBUG = False
      CSRF_ENABLED = True
      SECRET="some-very-long-string-of-random-characters-CHANGE-TO-YOUR-LIKING"
      SQLALCHEMY_DATABASE_URI = "mysql+pymysql://root:123456@localhost:3306/flask_api?charset=utf8mb4"
  
  
  
  class DevelopmentConfig(Config):
      """Configurations for Development."""
      DEBUG = True
  
  
  class TestingConfig(Config):
      """Configurations for Testing."""
      TESTING = True
      SQLALCHEMY_DATABASE_URI = 'postgresql://localhost/test_db'
      DEBUG = True
  
  
  class StagingConfig(Config):
      """Configurations for Staging."""
      DEBUG = True
  
  
  class ProductionConfig(Config):
      """Configurations for Production."""
      DEBUG = False
      TESTING = False
  
  
  app_config = {
      'development': DevelopmentConfig,
      'testing': TestingConfig,
      'staging': StagingConfig,
      'production': ProductionConfig,
  }
  