from base import *

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

# Database
# https://docs.djangoproject.com/en/1.9/ref/settings/#databases

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': config.get('live', 'djangomom'),
        'USER': config.get('live', 'database_user'),
        'PASSWORD': config.get('live', 'database_password'),
        'HOST': config.get('live', 'database_host'),
    }
}


PROJECTS_DIRECTORY = os.path.join(BASE_DIR, '../', '../', '../')

STATIC_URL = '/static/'

MEDIA_URL = '/media/'

STATICFILES_DIRS = [
    (os.path.join(BASE_DIR, '../', 'static')),
]

MEDIA_ROOT = os.path.normpath(
    os.path.join(
        os.path.dirname(__file__), '../../../../media/').replace('\\', '/'))
STATIC_ROOT = os.path.normpath(
    os.path.join(
        os.path.dirname(__file__), '../../../../static/').replace('\\', '/'))

from base import *

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

# Database
# https://docs.djangoproject.com/en/1.9/ref/settings/#databases

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': config.get('live', 'djangomom'),
        'USER': config.get('live', 'database_user'),
        'PASSWORD': config.get('live', 'database_password'),
        'HOST': config.get('live', 'database_host'),
    }
}


PROJECTS_DIRECTORY = os.path.join(BASE_DIR, '../', '../', '../')

STATIC_URL = '/static/'

MEDIA_URL = '/media/'

STATICFILES_DIRS = [
    (os.path.join(BASE_DIR, '../', 'static')),
]

MEDIA_ROOT = os.path.normpath(
    os.path.join(
        os.path.dirname(__file__), '../../../../media/').replace('\\', '/'))
STATIC_ROOT = os.path.normpath(
    os.path.join(
        os.path.dirname(__file__), '../../../../static/').replace('\\', '/'))

# SECURITY WARNING: don't run with debug turned on in production! # Database # https://docs.djangoproject.com/en/1.9/ref/settings/#databases