title: why isn't this django url redirecting?
body: <p>After getting post data from the following form, the page should redirect to 'associate:learn' as shown in the action.  However, it just stays on the radio button page.  I suspect I'm making a beginner's error but after rereading the tutorial, I'm not sure what's going on.</p>
  
  <p>index.html</p>
  
  <pre><code>Choose a dataset 
  
  {% if error_message %}&lt;p&gt;&lt;strong&gt;{{ error_message }}&lt;/strong&gt;&lt;/p&gt;{% endif %}
  
  &lt;form action="{% url 'associate:learn' %}" method="post"&gt;
  {% csrf_token %}
  {% for dataset in datasets %}
      &lt;input type="radio" name="dataset" id="dataset{{ forloop.counter }}" value="{{ dataset.id }}" /&gt;
      &lt;label for="dataset{{ forloop.counter }}"&gt;{{ dataset }}&lt;/label&gt;&lt;br /&gt;
  {% endfor %}
  &lt;input type="submit" value="learn" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>urls.py </p>
  
  <pre><code>from django.conf.urls import patterns, include, url
  
  from django.contrib import admin
  admin.autodiscover()
  
  urlpatterns = patterns('',
      url(r'^$', "associate.views.index", name='index'),
      url(r'^$', "associate.views.learn", name='learn'),
  )
  </code></pre>
  
  <p>urls.py</p>
  
  <pre><code>from django.conf.urls import patterns, include, url
  
  from django.contrib import admin
  admin.autodiscover()
  
  urlpatterns = patterns('',
      url(r'^images/', include('images_app.urls', namespace="images_app")),
      url(r'^associate/', include('associate.urls', namespace="associate")),
      url(r'^admin/', include(admin.site.urls)),
  )
  </code></pre>
  
  <p>views.py</p>
  
  <pre><code>def index(request):
  
      images = Image.objects.all()
      datasets = []
      for i in images:
  
          if i.rank() &gt;= 3:
  
              datasets.append(i)
  
      return render(request, 'associate/index.html', {'datasets':datasets})
  </code></pre>
  
  <p>The original HTML should redirect to this page.</p>
  
  <p>learn.html</p>
  
  <pre><code>THIS IS THE LEARN PAGE
  </code></pre>