Skip to content

Commit

Permalink
bug/django 4 webhook fix (#909)
Browse files Browse the repository at this point in the history
* testing webhook fix

* cleanup
  • Loading branch information
shayanaijaz authored and chandra-tacc committed Dec 8, 2023
1 parent 1337741 commit 8dd20dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
9 changes: 8 additions & 1 deletion server/portal/asgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,19 @@

import os
import django
from channels.routing import ProtocolTypeRouter
from channels.routing import ProtocolTypeRouter, URLRouter
from django.core.asgi import get_asgi_application
from channels.auth import AuthMiddlewareStack
import portal.apps.notifications.routing


os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'portal.settings.settings')
django.setup()
application = ProtocolTypeRouter({
"http": get_asgi_application(),
"websocket": AuthMiddlewareStack(
URLRouter(
portal.apps.notifications.routing.websocket_urlpatterns
)
)
})
12 changes: 0 additions & 12 deletions server/portal/routing.py

This file was deleted.

0 comments on commit 8dd20dd

Please sign in to comment.