Revision 97c7f1d23b6828e1bfe7cc82a0d2bd0a6a153adb authored by Maria Khrustaleva on 15 September 2023, 10:26:36 UTC, committed by GitHub on 15 September 2023, 10:26:36 UTC
Resolve https://github.com/opencv/cvat/issues/6837
Resolve https://github.com/opencv/cvat/issues/6836
1 parent 76844a6
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