remove the multiuser sync support
This commit is contained in:
+1
-15
@@ -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
@@ -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
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user