JOOHUUN
django websocket DM 본문
https://channels.readthedocs.io/en/latest/tutorial/part_2.html(공식문서)
Tutorial Part 2: Implement a Chat Server — Channels 3.0.5 documentation
This tutorial begins where Tutorial 1 left off. We’ll get the room page working so that you can chat with yourself and others in the same room. Write your first consumer When Django accepts an HTTP request, it consults the root URLconf to lookup a view f
channels.readthedocs.io
참고
https://github.com/codingforentrepreneurs/Direct-Messages-in-Django
GitHub - codingforentrepreneurs/Direct-Messages-in-Django: A tutorial on how to create synchronous slack-inspired message channe
A tutorial on how to create synchronous slack-inspired message channels and private messages using Django. Enjoy! - GitHub - codingforentrepreneurs/Direct-Messages-in-Django: A tutorial on how to c...
github.com
https://caniro.tistory.com/252 (웹소켓)
Django 채팅 앱 만들기
Django 채팅 앱 만들기 channels 공식 문서에 정리가 잘 되어있다. https://channels.readthedocs.io/en/latest/tutorial/part_1.html 장고 기본 페이지 생성 개발 환경 윈도우10, Anaconda3 가상환경에서 수행했..
caniro.tistory.com
https://www.youtube.com/watch?v=EgR8TXDQRXk(웹소켓x)
Websocket 이란
- 하나의 TCP 커넥으로 Full Duplex통신을 제공하는 프로토콜
- WebSocket은 프로토콜로서, 실시간으로 데이터를 양방향 통신 할 수 있게 해주는 기술 입니다.
- HTTP와 REST는 요청과 응답 동작을 근간으로 리소스들에 매핑된 여러개 URL, HTTP Method, HTTP Header 들에 기반으로 동작
- WS 의 경우는 하나의 URL 을 통해 커넥션을 수립하며, 이후 TCP 연결을 기반으로 메시지들이 '비동기','이벤트드리븐','메시징기반' 으로 처리
Channels 이란
- django에서 HTTP 프로토콜이 아닌 다른 프로토콜을 사용할수 있게 해주는 기술
DB모델링
'Django' 카테고리의 다른 글
django Chennels 활용 Websocket 통신 # 2 (모델 작성) (0) | 2022.07.17 |
---|---|
django Chennels 활용 Websocket 통신 # 1 (세팅 및 테스트) (0) | 2022.07.16 |
django ProductView get, post, put (0) | 2022.06.21 |
django ViewSet 사용 댓글 작성 및 불러오기 (0) | 2022.06.20 |
django 쿼리문법 (0) | 2022.06.20 |