You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
773 B
Python
34 lines
773 B
Python
# Copyright (C) 2018 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
from .base import *
|
|
|
|
DEBUG = False
|
|
|
|
INSTALLED_APPS += [
|
|
'mod_wsgi.server',
|
|
]
|
|
|
|
for key in RQ_QUEUES:
|
|
RQ_QUEUES[key]['HOST'] = os.getenv('CVAT_REDIS_HOST', 'cvat_redis')
|
|
|
|
CACHEOPS_REDIS['host'] = os.getenv('CVAT_REDIS_HOST', 'cvat_redis')
|
|
|
|
# Django-sendfile:
|
|
# https://github.com/johnsensible/django-sendfile
|
|
SENDFILE_BACKEND = 'sendfile.backends.xsendfile'
|
|
|
|
# Database
|
|
# https://docs.djangoproject.com/en/2.0/ref/settings/#databases
|
|
|
|
DATABASES = {
|
|
'default': {
|
|
'ENGINE': 'django.db.backends.postgresql',
|
|
'HOST': os.getenv('CVAT_POSTGRES_HOST', 'cvat_db'),
|
|
'NAME': 'cvat',
|
|
'USER': 'root',
|
|
'PASSWORD': os.getenv('CVAT_POSTGRES_PASSWORD', ''),
|
|
}
|
|
}
|