from .settings_shared import *


SECRET_KEY = '1234567890'

DEBUG = True

ALLOWED_HOSTS = []


# Application definition

INSTALLED_APPS += [
    'corsheaders',
]

MIDDLEWARE = [
    'corsheaders.middleware.CorsMiddleware',
] + MIDDLEWARE


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

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'NAME': 'mediocris',
        'USER': 'docker',
        'PASSWORD': 'docker',
        'HOST': 'db',
    }
}


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.11/howto/static-files/

STATIC_ROOT = '/var/www/mediocris/static'
STATIC_URL = '/static/'

MEDIA_ROOT = '/var/www/mediocris/media'
MEDIA_URL = '/media/'


# django-cors-headers

CORS_ORIGIN_ALLOW_ALL = True
