<filename>sfm/sfm/settings/docker_settings.py<gh_stars>0
from .common import *

INSTALLED_APPS.append("finalware")

# This field is stored in `User.USERNAME_FIELD`.
# This is usually a `username` or  an `email`.
SITE_SUPERUSER_USERNAME = env.get('SFM_SITE_ADMIN_NAME', 'sfmadmin')

# This field is stored in the `email` field, provided,
# that `User.USERNAME_FIELD` is not an `email`.
# If `User.USERNAME_FIELD` is already an email address,
# set `SITE_SUPERUSER_EMAIL = SITE_SUPERUSER_USERNAME`
SITE_SUPERUSER_EMAIL = env.get('SFM_SITE_ADMIN_EMAIL', '<EMAIL>')

# A hashed version of `SITE_SUPERUSER_PASSWORD` will be store
# in superuser's `password` field.
SITE_SUPERUSER_PASSWORD = env.get('SFM_SITE_ADMIN_PASSWORD', 'password')

STATIC_ROOT = "/opt/sfm-static"

LOGGING = {
    'version': 1,
    'disable_existing_loggers': False,
    'formatters': {
        'verbose': {
            'format': '%(levelname)s %(asctime)s %(process)d %(name)s %(message)s'
        }
    },
    'handlers': {
        'console': {
            'class': 'logging.StreamHandler',
            'formatter': 'verbose'
        },
    },
    'loggers': {
        'django': {
            'handlers': ['console'],
            'level': env.get('SFM_DJANGO_LOG', 'INFO'),
            'propagate': True,
        },
        'django.request': {
            'handlers': ['console'],
            'level': env.get('SFM_DJANGO_REQUEST_LOG', 'INFO'),
            'propagate': True,
        },
        'apscheduler': {
            'handlers': ['console'],
            'level': env.get('SFM_APSCHEDULER_LOG', 'INFO'),
            'propagate': True,
        },
        'ui': {
            'handlers': ['console'],
            'level': env.get('SFM_UI_LOG', 'INFO'),
            'propagate': True,
        },
        'message_consumer': {
            'handlers': ['console'],
            'level': env.get('SFM_UI_LOG', 'INFO'),
            'propagate': True,
        },
    },
}
RABBITMQ_HOST = "mq"
RABBITMQ_USER = env.get('MQ_ENV_RABBITMQ_DEFAULT_USER')
RABBITMQ_PASSWORD = env.get('MQ_ENV_RABBITMQ_DEFAULT_PASS')

<filename>sfm/sfm/settings/docker_settings.py<gh_stars>0
from .common import *

INSTALLED_APPS.append("finalware")

# This field is stored in `User.USERNAME_FIELD`.
# This is usually a `username` or  an `email`.
SITE_SUPERUSER_USERNAME = env.get('SFM_SITE_ADMIN_NAME', 'sfmadmin')

# This field is stored in the `email` field, provided,
# that `User.USERNAME_FIELD` is not an `email`.
# If `User.USERNAME_FIELD` is already an email address,
# set `SITE_SUPERUSER_EMAIL = SITE_SUPERUSER_USERNAME`
SITE_SUPERUSER_EMAIL = env.get('SFM_SITE_ADMIN_EMAIL', '<EMAIL>')

# A hashed version of `SITE_SUPERUSER_PASSWORD` will be store
# in superuser's `password` field.
SITE_SUPERUSER_PASSWORD = env.get('SFM_SITE_ADMIN_PASSWORD', 'password')

STATIC_ROOT = "/opt/sfm-static"

LOGGING = {
    'version': 1,
    'disable_existing_loggers': False,
    'formatters': {
        'verbose': {
            'format': '%(levelname)s %(asctime)s %(process)d %(name)s %(message)s'
        }
    },
    'handlers': {
        'console': {
            'class': 'logging.StreamHandler',
            'formatter': 'verbose'
        },
    },
    'loggers': {
        'django': {
            'handlers': ['console'],
            'level': env.get('SFM_DJANGO_LOG', 'INFO'),
            'propagate': True,
        },
        'django.request': {
            'handlers': ['console'],
            'level': env.get('SFM_DJANGO_REQUEST_LOG', 'INFO'),
            'propagate': True,
        },
        'apscheduler': {
            'handlers': ['console'],
            'level': env.get('SFM_APSCHEDULER_LOG', 'INFO'),
            'propagate': True,
        },
        'ui': {
            'handlers': ['console'],
            'level': env.get('SFM_UI_LOG', 'INFO'),
            'propagate': True,
        },
        'message_consumer': {
            'handlers': ['console'],
            'level': env.get('SFM_UI_LOG', 'INFO'),
            'propagate': True,
        },
    },
}
RABBITMQ_HOST = "mq"
RABBITMQ_USER = env.get('MQ_ENV_RABBITMQ_DEFAULT_USER')
RABBITMQ_PASSWORD = env.get('MQ_ENV_RABBITMQ_DEFAULT_PASS')

# This field is stored in `User.USERNAME_FIELD`. # This is usually a `username` or  an `email`. # This field is stored in the `email` field, provided, # that `User.USERNAME_FIELD` is not an `email`. # If `User.USERNAME_FIELD` is already an email address, # set `SITE_SUPERUSER_EMAIL = SITE_SUPERUSER_USERNAME` # A hashed version of `SITE_SUPERUSER_PASSWORD` will be store # in superuser's `password` field.