Created
March 27, 2024 14:39
-
-
Save axilaris/57cc0a3e1a063b7f5ac9449487f71c44 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from django.core.asgi import get_asgi_application | |
from channels.routing import ProtocolTypeRouter, URLRouter | |
import user_api.routing | |
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'backend.settings') | |
application = ProtocolTypeRouter({ | |
"websocket": URLRouter([ | |
path("/ws/notifications/", consumers.NotificationConsumer.as_asgi()), | |
]), | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
System check identified 1 issue (0 silenced). | |
March 27, 2024 - 14:37:36 | |
Django version 4.1.5, using settings 'backend.settings' | |
Starting development server at http://127.0.0.1:8000/ | |
Quit the server with CONTROL-C. | |
Forbidden: /api/user | |
WARNING:django.request:Forbidden: /api/user | |
[27/Mar/2024 14:37:39] "GET /api/user HTTP/1.1" 403 58 | |
Forbidden: /api/user | |
WARNING:django.request:Forbidden: /api/user | |
[27/Mar/2024 14:37:39] "GET /api/user HTTP/1.1" 403 58 | |
Not Found: /ws/notification/ | |
WARNING:django.request:Not Found: /ws/notification/ | |
Not Found: /ws/notification/ | |
WARNING:django.request:Not Found: /ws/notification/ | |
[27/Mar/2024 14:37:39] "GET /ws/notification/ HTTP/1.1" 404 2230 | |
[27/Mar/2024 14:37:39,399] - Broken pipe from ('127.0.0.1', 65363) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment