推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
StephenKwen
V2EX  ›  Python

Django 如何与 APP 通过 socket 通信?

  •  
  •   StephenKwen · Apr 8, 2018 · 4897 views
    This topic created in 2964 days ago, the information mentioned may be changed or developed.

    小企业,后端开发人数较少。现在计划开发一个社交通讯系统,已经使用了 django 作为后端框架。 现在需要实现与 iOS 端的 socket 通信(能够互相推送消息即可), 有什么比较好的方案?

    4 replies    2018-04-10 01:23:07 +08:00
    wcsjtu
        1
    wcsjtu  
       Apr 8, 2018   ❤️ 1
    websocket 了解一下?或者 django channel
    YangJian1994
        2
    YangJian1994  
       Apr 9, 2018
    Ajax 吗?
    StephenKwen
        3
    StephenKwen  
    OP
       Apr 10, 2018
    @wcsjtu 不是 websocket
    @YangJian1994 也不是 ajax.

    问题可能要更正一下: 现在我已经有了一个基于 Django 的网站,要增加对外的 socket 通信,有什么解决方案?
    StephenKwen
        4
    StephenKwen  
    OP
       Apr 10, 2018
    本问题与 /t/434154 类似。该帖子多数答案的建议,与本帖的 1 楼相同-----使用 django-channel。
    我先尝试使用 django-channel。 多谢大家的帮助。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5211 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 06:01 · PVG 14:01 · LAX 23:01 · JFK 02:01
    ♥ Do have faith in what you're doing.