Funktionierender Prototyp des Serious Games zur Vermittlung von Wissen zu Software-Engineering-Arbeitsmodellen.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 year ago
12345678910111213141516171819202122232425262728293031
  1. """
  2. ASGI config for Webgame project.
  3. It exposes the ASGI callable as a module-level variable named ``application``.
  4. For more information on this file, see
  5. https://docs.djangoproject.com/en/4.1/howto/deployment/asgi/
  6. """
  7. import os
  8. from django.core.asgi import get_asgi_application
  9. os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Webgame.settings")
  10. app = get_asgi_application()
  11. from channels.auth import AuthMiddlewareStack
  12. from channels.routing import ProtocolTypeRouter, URLRouter
  13. from channels.security.websocket import AllowedHostsOriginValidator
  14. from channels.routing import ProtocolTypeRouter, URLRouter
  15. from channels.auth import AuthMiddlewareStack
  16. import mygame.routing
  17. application = ProtocolTypeRouter(
  18. {
  19. "http": app,
  20. "websocket": AllowedHostsOriginValidator(
  21. AuthMiddlewareStack(URLRouter(mygame.routing.websocket_urlpatterns))
  22. ),
  23. }
  24. )