from os import getenv, \
               path

class Config(object):
    API_KEY = getenv('API_KEY')
    DEBUG = getenv('DEBUG', False)
    SQLALCHEMY_DATABASE_URI = getenv('DATABASE_URL', 'sqlite:///' + path.dirname(__file__) + '/app/app.db').replace('mysql2:', 'mysql:')
    SQLALCHEMY_ECHO = getenv('SQLALCHEMY_ECHO', False)
    SQLALCHEMY_POOL_RECYCLE = 60
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    STRIP_WWW_PREFIX = True
    TESTING = False

from os import getenv, \
               path

class Config(object):
    API_KEY = getenv('API_KEY')
    DEBUG = getenv('DEBUG', False)
    SQLALCHEMY_DATABASE_URI = getenv('DATABASE_URL', 'sqlite:///' + path.dirname(__file__) + '/app/app.db').replace('mysql2:', 'mysql:')
    SQLALCHEMY_ECHO = getenv('SQLALCHEMY_ECHO', False)
    SQLALCHEMY_POOL_RECYCLE = 60
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    STRIP_WWW_PREFIX = True
    TESTING = False
