Skip to content

Commit

Permalink
срочные изменения перед сдачей, которые не закоммитил
Browse files Browse the repository at this point in the history
  • Loading branch information
PahaN47 committed Feb 12, 2024
1 parent 9a94ba7 commit ad9b8de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/company_socket/asgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
application = ProtocolTypeRouter(
{
"http": django_asgi_app,
"websocket": AllowedHostsOriginValidator(AuthMiddlewareStack(URLRouter(chat.routing.websocket_urlpatterns))),
"websocket": AllowedHostsOriginValidator(
AuthMiddlewareStack(URLRouter(chat.routing.websocket_urlpatterns)),
),
}
)
2 changes: 1 addition & 1 deletion src/company_socket/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = []
ALLOWED_HOSTS = ["*"]


# Application definition
Expand Down

0 comments on commit ad9b8de

Please sign in to comment.