old_contents: import tempfile
  db_file = tempfile.NamedTemporaryFile()
  
  class Config(object):
      SECRET_KEY = 'REPLACE ME'
  
  
  class ProdConfig(Config):
      ENV = 'prod'
      SQLALCHEMY_DATABASE_URI = 'sqlite:///../database.db'
  
      CACHE_TYPE = 'simple'
  
  
  class DevConfig(Config):
      ENV = 'dev'
      DEBUG = True
      DEBUG_TB_INTERCEPT_REDIRECTS = False
  
      SQLALCHEMY_DATABASE_URI = 'sqlite:///../database.db'
  
      CACHE_TYPE = 'null'
      ASSETS_DEBUG = True
  
  
  class TestConfig(Config):
      ENV = 'test'
      DEBUG = True
      DEBUG_TB_INTERCEPT_REDIRECTS = False
  
      SQLALCHEMY_DATABASE_URI = 'sqlite:///' + db_file.name
      SQLALCHEMY_ECHO = True
  
      CACHE_TYPE = 'null'
      WTF_CSRF_ENABLED = False
  
new_contents: import tempfile
  db_file = tempfile.NamedTemporaryFile()
  url = 'postgresql://{}:{}@{}:{}/{}'
  url = url.format('warrior', 'dhruvmehra', 'localhost', '5432', 'solar')
  
  class Config(object):
      SECRET_KEY = 'REPLACE ME'
  
  
  class ProdConfig(Config):
      ENV = 'prod'
      SQLALCHEMY_DATABASE_URI = url
  
      CACHE_TYPE = 'simple'
  
  
  class DevConfig(Config):
      ENV = 'dev'
      DEBUG = True
      DEBUG_TB_INTERCEPT_REDIRECTS = False
  
      SQLALCHEMY_DATABASE_URI = url
  
      CACHE_TYPE = 'null'
      ASSETS_DEBUG = True
  
  
  class TestConfig(Config):
      ENV = 'test'
      DEBUG = True
      DEBUG_TB_INTERCEPT_REDIRECTS = False
  
      SQLALCHEMY_DATABASE_URI = 'sqlite:///' + db_file.name
      SQLALCHEMY_ECHO = True
  
      CACHE_TYPE = 'null'
      WTF_CSRF_ENABLED = False
  
subject: Update settings.py