import os
basedir = os.path.abspath(os.path.dirname(__file__))


class Config(object):
    """app wide configuration settings. """
    DEBUG = False
    CSRF_ENABLED = True
    SECRET = os.getenv('SECRET')
    SQLALCHEMY_DATABASE_URI = os.getenv('DATABASE_URI')


class DevelopmentConfig(Config):
    """Dev config settings. """
    DEBUG = True
    SQLALCHEMY_TRACK_MODIFICATIONS = False


class TestingConfig(Config):
    """Testing config settings. """
    TESTING = True
    SQLALCHEMY_TRACK_MODIFICATIONS = True
    SQLALCHEMY_DATABASE_URI = ('sqlite:///' +
                               os.path.join(basedir, 'bucketlist.db'))
    DEBUG = True


class StagingConfig(Config):
    """Staging config. """
    DEBUG = True


class ProductionConfig(Config):
    """ Production config. """
    DEBUG = False
    TESTING = False


app_config = {
    'development': DevelopmentConfig,
    'testing': TestingConfig,
    'production': ProductionConfig,
    'staging': StagingConfig,
    'default': DevelopmentConfig
}

@@ -7,61 +7,8 @@
  os%0A
-basedir = os.path.abspath(os.path.dirname(__file__))%0A
 %0A%0Acl
@@ -491,93 +491,37 @@
 I = 
-('sqlite:///' +%0A                               os.path.join(basedir, 'bucketlist.db')
+os.getenv(%22TEST_DATABASE_URI%22
 )%0A  

change test database to postgres