title: Authenticating users using pusher in django
body: <p>I am a bit confused on how does the Authentication works in Django using pusher i want to implement a one-to-one chatting system so i guess i will be using private channels that requires authentication before you can subscribe to the channel ... i read <a href="http://pusher.com/docs/authenticating_users#channel_authentication_endpoint" rel="nofollow">there</a> that the endpoint is the url you want pusher to POST to, i added a url to test if it is working but every time the status returns 403 and it seems it doesn't enter the view i created to test  it so any ideas ? here is a sample of my code : </p>
  
  <p><strong>message.html</strong></p>
  
  <pre><code>var channel = pusher.subscribe('private-test');
  channel.bind('message', function(data) {
    var $message = $('&lt;div class="message"/&gt;').appendTo('#messages');
    $('&lt;span class="user"/&gt;').text(data.user).appendTo($message);
    $('&lt;span/&gt;').text(data.message).appendTo($message);
  });;
  
  Pusher.channel_auth_endpoint = 'test/'; 
  Pusher.channel_auth_transport = 'ajax';
  
  channel.bind('pusher:subscription_succeeded', function(status) {
      alert(status);
  });
  
  channel.bind('pusher:subscription_error', function(status) {
      alert(status);
  });
  </code></pre>
  
  <p><strong>Views.py:</strong></p>
  
  <pre><code>def testUser(request,user_name):
  print 'Test Passed'
  return render_to_response('message.html', {
      'PUSHER_KEY': settings.PUSHER_KEY,'channel_variable':request.user.id,'other_var':'3', 
  }, RequestContext(request)) 
  </code></pre>
  
  <p>when i checked the url it POSTs to, in my cmd i found it correct and it matched the one i put in urls.py but i still don't know why it does not enter my view </p>