Correctly install django-socketio and django-socketio

Source: Internet
Author: User

Correctly install django-socketio and django-socketio

You can directly use pip for installation and cannot run even the example project...

The key to normal use is to use the correct version of the dependency package.

  • Django (1.5.5)
  • Django-socketio (0.3.2)
  • Gevent (0.13.6)
  • Gevent-socketio (0.2.1)
  • Gevent-websocket (0.2.3)
  • Greenlet (0.4.4)

The gevent version must be earlier than 1.0. Other versions of 0.X have not been tested.

In addition, gevent-socketio needs to be modified to the following in handler. py:

54 # In case this is WebSocket request, switch to the WebSocketHandler55 if transport in (transports.WebsocketTransport, \56                 transports.FlashSocketTransport):57             self.__class__ = WebSocketHandler58             WebSocketHandler(self)59             self.handle_one_response(call_wsgi_app=False)60             session = self.server.get_session()61         else:62             session = self.server.get_session(session_id)

 


Incorrect installation

Are you sure you want to install this program on your computer ). If this program is installed, click it to install it correctly. If this program is not installed, you can use 1st items. If the first item is not installed successfully (manually confirm it )... you can only search for the latest version of for win7 on Toshiba's website. In most cases, this can be ignored. It is rare that the installation fails.

How to correctly install the Computer System

Simple: online tutorials

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.