remove the multiuser sync support

This commit is contained in:
Ross
2026-07-13 11:52:33 +01:00
parent 8ae33e32ee
commit 685f66854e
19 changed files with 211 additions and 1449 deletions
+1 -15
View File
@@ -2,19 +2,5 @@ import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'rad.settings')
# Initialize Django ASGI application early to ensure AppRegistry is populated
# before importing consumers/routing.
django_asgi_app = get_asgi_application()
from channels.routing import ProtocolTypeRouter, URLRouter
from channels.auth import AuthMiddlewareStack
import generic.routing
application = ProtocolTypeRouter({
"http": django_asgi_app,
"websocket": AuthMiddlewareStack(
URLRouter(
generic.routing.websocket_urlpatterns
)
),
})
application = get_asgi_application()
+1 -12
View File
@@ -43,7 +43,6 @@ ALLOWED_HOSTS = [
# Application definition
INSTALLED_APPS = [
"daphne",
"generic",
"anatomy",
"physics",
@@ -75,7 +74,6 @@ INSTALLED_APPS = [
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.staticfiles",
"channels",
"django.contrib.postgres",
"dbbackup",
"tinymce",
@@ -406,16 +404,7 @@ TASKS = {
}
# ASGI & Django Channels settings
ASGI_APPLICATION = "rad.asgi.application"
CHANNEL_LAYERS = {
"default": {
"BACKEND": "channels_redis.core.RedisChannelLayer",
"CONFIG": {
"hosts": [(REDIS_HOST, 6379)],
},
},
}
def show_toolbar(request):
if request.headers.get("HX-Request") or getattr(request, "htmx", False):
+186 -186
View File
File diff suppressed because one or more lines are too long