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

SQLALCHEMY_DATABASE_URI = os.getenv("DATABASE_URL")
if SQLALCHEMY_DATABASE_URI == None:
#	SQLALCHEMY_DATABASE_URI = 'postgresql://localhost/appdb'
	SQLALCHEMY_DATABASE_URI = 'postgresql://localhost/appdb2'
SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository')

# class Config(object):
#     DEBUG = True
#     # TESTING = False
#     # CSRF_ENABLED = True
#     SECRET_KEY = 'gogogo'


# class ProductionConfig(Config):
#     DEBUG = False


# class StagingConfig(Config):
#     DEVELOPMENT = True
#     DEBUG = True


# class DevelopmentConfig(Config):
#     DEVELOPMENT = True
#     DEBUG = True


# class TestingConfig(Config):
#     TESTING = True

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

SQLALCHEMY_DATABASE_URI = os.getenv("DATABASE_URL")
if SQLALCHEMY_DATABASE_URI == None:
#	SQLALCHEMY_DATABASE_URI = 'postgresql://localhost/appdb'
	SQLALCHEMY_DATABASE_URI = 'postgresql://localhost/appdb2'
# SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository')

class Config(object):
    DEBUG = True
    TESTING = False
    CSRF_ENABLED = True
    SECRET_KEY = 'gogogo'


class ProductionConfig(Config):
    DEBUG = False


class StagingConfig(Config):
    DEVELOPMENT = True
    DEBUG = True


class DevelopmentConfig(Config):
    DEVELOPMENT = True
    DEBUG = True


class TestingConfig(Config):
    TESTING = True

update config