title: Getting "Broken pipe from ('127.0.0.1', 33187)" when doing a get request using $.ajax
body: <p>I am trying to submit a form asynchronously using a <code>form</code> tag, <code>&lt;input type='submit' method=get&gt;</code>, and <em>jQuery</em>. </p>
  
  <p><strong><em>When I click the submit button I am getting the following error in my terminal traceback:</em></strong> </p>
  
  <p><code>[24/Mar/2016 03:55:14] "GET /? HTTP/1.1" 200 1270
  [24/Mar/2016 03:55:14] "GET /submitted/1458791714827 HTTP/1.1" 302 0
  - Broken pipe from ('127.0.0.1', 33187)
  </code>
  <strong><em>Here is my HTML...</em></strong></p>
  
  <pre><code>&lt;body&gt;
      &lt;h1&gt;API: Disney&lt;/h1&gt;
      &lt;form method="get"&gt;
        &lt;input type='submit' value='CLICK ME VIEW ALL TIMESTAMPS BETWEEN NOW AND 5 MINUTES AGO!'&gt;&lt;/input&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p><strong><em>Here is my jQuery...</em></strong></p>
  
  <pre><code>$(document).ready(function(){
      $('form').submit(function(){
          var submittime = new Date().getTime()
          $.ajax({
              url: 'submitted/' + submittime,
          });
      });
  })
  </code></pre>
  
  <p><strong><em>Here is my View...</em></strong></p>
  
  <pre><code>class SubmitValue(View):
      def get(self, request, currdate):
          val = random.randrange(1,100)
          date = int(currdate)
          Data.objects.create(value=val, curr_time=date)
          return redirect('/')
  </code></pre>
  
  <p><strong><em>Here is my apps urls.py file...</em></strong></p>
  
  <pre><code>url(r'^submitted/(?P&lt;currdate&gt;\d+)$', SubmitValue.as_view()),
  </code></pre>
  
  <p><strong><em>Here is my Models...</em></strong></p>
  
  <pre><code>from django.db import models
  
  class Data(models.Model):
      value = models.IntegerField()
      curr_time = models.BigIntegerField()
  </code></pre>