support chat v3
This commit is contained in:
SDE
2023-08-16 15:33:46 +03:00
parent 4d8ee4bfcc
commit e86aa76002
4 changed files with 25 additions and 10 deletions

View File

@@ -1,4 +1,6 @@
{% load static %}
{% load tt_chat %}
<!DOCTYPE html>
<html lang="en">
<head>
@@ -10,7 +12,7 @@
<script>
{#var user_id = {{ user.id }}#}
ws_url = `ws://localhost:{{ ws_port }}/ws/socket-server/?user_id={{ user.id }}`;
ws_url = `ws://localhost:{% get_ws_port %}/ws/socket-server/?user_id={{ user.id }}`;
</script>