content: import os
  from dotenv import load_dotenv
  
  basedir = os.path.abspath(os.path.dirname(__file__))
  load_dotenv(os.path.join(basedir, '.env'))
  
  
  class Config:
      SECRET_KEY = os.environ.get('SECRET_KEY') or 'you-will-never-guess'
      SERVER_NAME = os.environ.get('SERVER_NAME')
      SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL', '').replace(
          'postgres://', 'postgresql://') or \
          'sqlite:///' + os.path.join(basedir, 'app.db')
      LOG_TO_STDOUT = os.environ.get('LOG_TO_STDOUT')
      MAIL_SERVER = os.environ.get('MAIL_SERVER')
      MAIL_PORT = int(os.environ.get('MAIL_PORT') or 25)
      MAIL_USE_TLS = os.environ.get('MAIL_USE_TLS') is not None
      MAIL_USERNAME = os.environ.get('MAIL_USERNAME')
      MAIL_PASSWORD = os.environ.get('MAIL_PASSWORD')
      ADMINS = ['your-email@example.com']
      LANGUAGES = ['en', 'es']
      MS_TRANSLATOR_KEY = os.environ.get('MS_TRANSLATOR_KEY')
      ELASTICSEARCH_URL = os.environ.get('ELASTICSEARCH_URL')
      REDIS_URL = os.environ.get('REDIS_URL') or 'redis://'
      POSTS_PER_PAGE = 25
  