diff --git a/ChatServiceApp/templatetags/tt_chat.py b/ChatServiceApp/templatetags/tt_chat.py index 39b644d..6a99e84 100644 --- a/ChatServiceApp/templatetags/tt_chat.py +++ b/ChatServiceApp/templatetags/tt_chat.py @@ -13,8 +13,8 @@ register = template.Library() # @register.filter('get_msg_side') @register.simple_tag -def get_ws_port(): - return settings.WS_PORT +def get_ws_address(): + return settings.WS_ADDRESS @register.simple_tag diff --git a/TWB/settings.py b/TWB/settings.py index 3f1b6aa..9877948 100644 --- a/TWB/settings.py +++ b/TWB/settings.py @@ -91,7 +91,7 @@ TEMPLATES = [ # WSGI_APPLICATION = 'TWB.wsgi.application' ASGI_APPLICATION = 'TWB.asgi.application' -WS_PORT = 8000 +WS_ADDRESS = 'localhost:8000' CHANNEL_LAYERS = { 'default': { diff --git a/templates/tb_base.html b/templates/tb_base.html index 136ec91..5d6c73a 100644 --- a/templates/tb_base.html +++ b/templates/tb_base.html @@ -12,7 +12,7 @@