"""Django settings for use within the docker container."""

from os import environ
from os.path import abspath, dirname, join

import dj_database_url

from .production import *  # noqa: F401, F403


SECRET_KEY = environ.get('DOCKER_SECRET_KEY') or DEFAULT_SECRET_KEY
# Disable debug mode

DEBUG = False

PROJECT_ROOT = (
    environ.get('PROJECT_ROOT') or dirname(dirname(abspath(__file__))))

COMPRESS_OFFLINE = True

DATABASES = {
    'default': dj_database_url.config(
        default='sqlite:///%s' % (join(PROJECT_ROOT, 'malaria24.sqlite3'),))}

MEDIA_ROOT = join(PROJECT_ROOT, 'media')

STATIC_ROOT = join(PROJECT_ROOT, 'static')

LOCALE_PATHS = (
    join(PROJECT_ROOT, "locale"),
)

"""Django settings for use within the docker container."""

from os import environ
from os.path import abspath, dirname, join

import dj_database_url

from .production import *  # noqa: F401, F403


SECRET_KEY = environ.get('SECRET_KEY') or DEFAULT_SECRET_KEY
# Disable debug mode

DEBUG = False

PROJECT_ROOT = (
    environ.get('PROJECT_ROOT') or dirname(dirname(abspath(__file__))))

COMPRESS_OFFLINE = True

DATABASES = {
    'default': dj_database_url.config(
        default='sqlite:///%s' % (join(PROJECT_ROOT, 'malaria24.sqlite3'),))}

MEDIA_ROOT = join(PROJECT_ROOT, 'media')

STATIC_ROOT = join(PROJECT_ROOT, 'static')

LOCALE_PATHS = (
    join(PROJECT_ROOT, "locale"),
)

rename setting