Revision 08550f8d5f1fc93445dc02e91dc6d3718c36745a authored by Roman Donchenko on 26 October 2023, 06:44:35 UTC, committed by GitHub on 26 October 2023, 06:44:35 UTC
This would help users who don't want or need the complexity of
Kubernetes, but would still like to use an external database.

With Docker Compose, you can initialize a secret from an environment
variable, but you can't load a secret _into_ an environment variable. So
in order to be able to read the DB password from a secret, I had to
introduce a new `CVAT_POSTGRES_PASSWORD_FILE` variable.
1 parent 57dffae
Raw File
manage.py
#!/usr/bin/env python3

# Copyright (C) 2018-2022 Intel Corporation
#
# SPDX-License-Identifier: MIT

import os
import sys

if __name__ == "__main__":
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cvat.settings.development")
    try:
        from django.core.management import execute_from_command_line
    except ImportError as exc:
        raise ImportError(
            "Couldn't import Django. Are you sure it's installed and "
            "available on your PYTHONPATH environment variable? Did you "
            "forget to activate a virtual environment?"
        ) from exc
    execute_from_command_line(sys.argv)
back to top