def connect_consumer(message, *args, **kwargs):
 message.reply_channel.send({u'accept': True})

def connect_consumer ( message , * args , ** kwargs ) : message . reply_channel . send ( { u'accept' : True } )
accept-all-connections websocket .