text: import os
  
  # uncomment the line below for postgres database url from environment variable
  # postgres_local_base = os.environ['DATABASE_URL']
  
  basedir = os.path.abspath(os.path.dirname(__file__))
  
  
  class Config:
      SECRET_KEY = os.getenv('SECRET_KEY', 'my_precious_secret_key')
      DEBUG = False
  
  class DevelopmentConfig(Config):
      # uncomment the line below to use postgres
      # SQLALCHEMY_DATABASE_URI = postgres_local_base
      DEBUG = True
      SQLALCHEMY_DATABASE_URI = 'postgres://azqkdeiqpezmzj:ee1246a50f9c0d67038106e0557c7eddd05bdd0fda2149d831354388f53d70a9@ec2-54-235-250-38.compute-1.amazonaws.com:5432/d3u39l3sta71kl'
      SQLALCHEMY_TRACK_MODIFICATIONS = False
  
  
  class TestingConfig(Config):
      DEBUG = True
      TESTING = True
      SQLALCHEMY_DATABASE_URI = 'postgres://azqkdeiqpezmzj:ee1246a50f9c0d67038106e0557c7eddd05bdd0fda2149d831354388f53d70a9@ec2-54-235-250-38.compute-1.amazonaws.com:5432/d3u39l3sta71kl'
      PRESERVE_CONTEXT_ON_EXCEPTION = False
      SQLALCHEMY_TRACK_MODIFICATIONS = False
  
  
  class ProductionConfig(Config):
      DEBUG = False
      # uncomment the line below to use postgres
      # SQLALCHEMY_DATABASE_URI = postgres_local_base
  
  config_by_name = dict(
      dev=DevelopmentConfig,
      test=TestingConfig,
      prod=ProductionConfig
  )
  
  key = Config.SECRET_KEY
  