title: django channels message.reply_channel no attribute send
body: <p>I've been trying to get my head around the channels of Django and I can't get my message to be sent to my websocket.</p>
  
  <p>Here is my <code>consumers.py</code></p>
  
  <pre><code>import logging
  from django.contrib.sites.models import Site
  from django.utils import timezone
  from channels import Group
  from .models import *
  import json
  
  def send_free(message):
      try:
          pi = PInformation.objects.get(
              pk=message.content.get('pk'),
          )
      except Parkplatzinformationen.DoesNotExist:
          logging.error("PI not found!")
          return
  
      try:
          message.reply_channel.send({
          "text": 1,
      })
      except:
          logging.exception('Problem sending %s' % (pi.name))
  </code></pre>
  
  <p>My <code>routing.py</code></p>
  
  <pre><code>from channels.routing import route
  
  from RESTAPI.consumers import send_free
  
  channel_routing = [
      route('send-free',send_free),
  ]
  </code></pre>
  
  <p>I'm getting the error <code>AttributeError: 'NoneType' object has no attribute 'send'</code>. It does however get the PInformation object so it does work a "bit". I'm calling it right after I'm saving the object.</p>
  
  <p>Could you please give me some hints? <a href="http://channels.readthedocs.io/en/latest/getting-started.html" rel="nofollow">The Getting Started guide</a> uses it like I try to.</p>