Y
Size: a a a
Y
AB
АА
АА
AB
PE
AB
var StatementSocket = new WebSocket(
'ws://' + window.location.host +
'/ws/statements/');
Y
AB
p
>>> test2 = TestTable.objects.all()[1]
>>> test2.new_field
>>> test = TestTable.objects.all()[0]
>>> test.new_field
<TestTable: Имя>
>>> test.new_field.id
1
>>> test2.new_field.id
AttributeError: 'NoneType' object has no attribute 'id'
Y
AB
Y
AB
AB
🔐
Y
upstream channels {
server 127.0.0.1:8088;
}
location /ws/ {
proxy_pass http://channels;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
}
Y
🔐