title: AttributeError: 'str' object has no attribute 'regex'
body: <p>working with legacy <strong>django 1.3.1</strong> , having problem in using the url name patterns in the template.</p>
  
  <p><strong>urls.py</strong> :</p>
  
  <pre><code>urlpatterns = patterns(
      'project.views',
  
      url(r'^web/login/', 'login', name="web_login"),
  
  )
  </code></pre>
  
  <p>in <strong>views</strong> rendering template like:</p>
  
  <pre><code>return render_to_response('index.html', context_instance=RequestContext(request))
  </code></pre>
  
  <p>in <strong>template</strong> using the url naming pattern like</p>
  
  <pre><code>&lt;form id="loginForm" action="{% url web_login %}" method="POST"&gt;
  </code></pre>
  
  <p>Getting the error while rendering the template </p>
  
  <p>AttributeError: 'str' object has no attribute 'regex'</p>