Revision cbd5f433f3ff478fb26e9c09b9e3b5c74512e28d authored by Jonas Otten on 13 December 2023, 10:29:49 UTC, committed by GitHub on 13 December 2023, 10:29:49 UTC
It is not possible to attach a GCS cloud storage bucket whose name contains a dot. As stated [here](https://cloud.google.com/storage/docs/buckets#naming), GCS bucket names allow dots. This is a major problem for us, and this PR fixes this issue. --------- Co-authored-by: Jonas Otten <jootten@uos.de> Co-authored-by: Boris Sekachev <sekachev.bs@gmail.com> Co-authored-by: Maria Khrustaleva <maria@cvat.ai>
1 parent 2aae952
asgi.py
# Copyright (C) 2023 CVAT.ai Corporation
#
# SPDX-License-Identifier: MIT
"""
ASGI config for CVAT project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
from django.core.handlers.asgi import ASGIHandler
import cvat.utils.remote_debugger as debug
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cvat.settings.development")
application = get_asgi_application()
if debug.is_debugging_enabled():
class DebuggerApp(ASGIHandler):
"""
Support for VS code debugger
"""
def __init__(self) -> None:
super().__init__()
self.__debugger = debug.RemoteDebugger()
async def handle(self, *args, **kwargs):
self.__debugger.attach_current_thread()
return await super().handle(*args, **kwargs)
application = DebuggerApp()
Computing file changes ...