# -*- coding: utf-8 -*-
"""Application configuration."""

import os


class Config(object):
    """Base configuration."""

    DEBUG = False
    TESTING = False
    APP_DIR = os.path.abspath(os.path.dirname(__file__))
    PROJECT_ROOT = os.path.abspath(os.path.join(APP_DIR, os.pardir))

    # Local Settings
    """MONGODB_DB = os.environ.get('WHERENO_DB', 'whereno')
    MONGODB_HOST = os.environ.get('WHERENO_HOST', 'localhost')
    MONGODB_PORT = os.environ.get('WHERENO_PORT', 27017)
    MONGODB_USERNAME = os.environ.get('WHERENO_USERNAME', 'whereno')
    MONGODB_PASSWORD = os.environ.get('WHERENO_PASSWORD', 'whereno')"""

    # Cloud Settings
    MONGODB_DB = str(os.environ.get('MONGODB_DB'))
    MONGODB_HOST = str(os.environ.get('MONGODB_HOST'))


class ProdConfig(Config):
    """Production configuration."""

    ENV = 'prod'
    DEBUG = False
    TESTING = False


class DevConfig(Config):
    """Development configuration."""

    ENV = 'dev'
    DEBUG = True
    TESTING = True
    CACHE_TYPE = 'simple'
    BCRYPT_LOG_ROUNDS = 4


class TestConfig(Config):
    """Test configuration."""

    TESTING = True
    DEBUG = True
    BCRYPT_LOG_ROUNDS = 4


# -*- coding: utf-8 -*-
"""Application configuration."""

import os


class Config(object):
    """Base configuration."""

    DEBUG = False
    TESTING = False
    APP_DIR = os.path.abspath(os.path.dirname(__file__))
    PROJECT_ROOT = os.path.abspath(os.path.join(APP_DIR, os.pardir))

    # Local Settings
    """MONGODB_DB = os.environ.get('WHERENO_DB', 'whereno')
    MONGODB_HOST = os.environ.get('WHERENO_HOST', 'localhost')
    MONGODB_PORT = os.environ.get('WHERENO_PORT', 27017)
    MONGODB_USERNAME = os.environ.get('WHERENO_USERNAME', 'whereno')
    MONGODB_PASSWORD = os.environ.get('WHERENO_PASSWORD', 'whereno')"""

    # Cloud Settings
    MONGODB_DB = str(os.environ.get('MONGODB_DB'))
    print(MONGODB_DB)
    MONGODB_HOST = str(os.environ.get('MONGODB_HOST'))
    print(MONGODB_HOST)


class ProdConfig(Config):
    """Production configuration."""

    ENV = 'prod'
    DEBUG = False
    TESTING = False


class DevConfig(Config):
    """Development configuration."""

    ENV = 'dev'
    DEBUG = True
    TESTING = True
    CACHE_TYPE = 'simple'
    BCRYPT_LOG_ROUNDS = 4


class TestConfig(Config):
    """Test configuration."""

    TESTING = True
    DEBUG = True
    BCRYPT_LOG_ROUNDS = 4


Fix settings issue