Revision d497bb6a90dd3c9625c3c8e8f73278019e21983d authored by Roman Donchenko on 29 September 2023, 07:03:49 UTC, committed by GitHub on 29 September 2023, 07:03:49 UTC
This functionality has accumulated significant technical debt: * Most importantly, it does not use the current authorization system, rendering it accessible only for admin users. * It doesn't follow the regular API conventions and is not visible in the API schema. This necessitates a special code in the SDK. * The initialization code in `base.py` is not safe when multiple instances of the server starts at the same time (each instance may end up generating its own key). The team has decided that the cost of fixing these issues outweighs the benefit of the functionality, so remove it.
1 parent 4a487c3
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)
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...