From 67c5a76e3e862fa8f23adc2a23de6cb11bd8fb99 Mon Sep 17 00:00:00 2001 From: GodFather Date: Fri, 22 Dec 2023 15:49:03 +0330 Subject: [PATCH 01/20] save send messages to `db` and show to chatroom --- .idea/workspace.xml | 59 ++++++++++++++++++++++----------------- chat/consumers.py | 34 ++++++++++++++-------- chat/views.py | 11 +++++++- db.sqlite3 | Bin 139264 -> 139264 bytes manage.py | 1 + templates/chat/room.html | 16 ++++++++--- 6 files changed, 78 insertions(+), 43 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 64cb1c8..902144f 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -6,7 +6,11 @@ - + + + + + - { + "keyToString": { + "ASKED_ADD_EXTERNAL_FILES": "true", + "DefaultHtmlFileTemplate": "HTML File", + "Django Server.django_channels.executor": "Run", + "RunOnceActivity.OpenDjangoStructureViewOnStart": "true", + "RunOnceActivity.OpenProjectViewOnStart": "true", + "RunOnceActivity.ShowReadmeOnStart": "true", + "django.template.preview.state": "SHOW_EDITOR", + "git-widget-placeholder": "master", + "last_opened_file_path": "E:/Projects/django_channels/static/images", + "list.type.of.created.stylesheet": "CSS", + "node.js.detected.package.eslint": "true", + "node.js.detected.package.tslint": "true", + "node.js.selected.package.eslint": "(autodetect)", + "node.js.selected.package.tslint": "(autodetect)", + "nodejs_package_manager_path": "npm", + "settings.editor.selected.configurable": "preferences.pluginManager", + "vue.rearranger.settings.migration": "true" } -}]]> +} @@ -136,6 +140,9 @@ + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - { + "keyToString": { + "ASKED_ADD_EXTERNAL_FILES": "true", + "DefaultHtmlFileTemplate": "HTML File", + "Django Server.django_channels.executor": "Run", + "RunOnceActivity.OpenDjangoStructureViewOnStart": "true", + "RunOnceActivity.OpenProjectViewOnStart": "true", + "RunOnceActivity.ShowReadmeOnStart": "true", + "django.template.preview.state": "SHOW_EDITOR", + "git-widget-placeholder": "master", + "last_opened_file_path": "E:/Projects/django_channels/static", + "list.type.of.created.stylesheet": "CSS", + "node.js.detected.package.eslint": "true", + "node.js.detected.package.tslint": "true", + "node.js.selected.package.eslint": "(autodetect)", + "node.js.selected.package.tslint": "(autodetect)", + "nodejs_package_manager_path": "npm", + "settings.editor.selected.configurable": "preferences.pluginManager", + "vue.rearranger.settings.migration": "true" } -}]]> +} @@ -174,6 +143,7 @@ + - + + + + + + + + + + + @@ -139,7 +149,10 @@ - + + + + -