title: Django url template tag {% url %} error on django 1.4
body: <p>I made this many times and it worked, but not this time.</p>
  
  <p>I get this error when I try to use {% url path.to.view %} django's template tage:</p>
  
  <blockquote>
    <p>AttributeError at /login/ 'str' object has no attribute 'regex'</p>
  </blockquote>
  
  <hr>
  
  <h2>urls.py (main)</h2>
  
  <pre><code>urlpatterns= patterns('', (r'', include('authenticate.urls')),  )
  </code></pre>
  
  <hr>
  
  <h2>urls.py (my app)</h2>
  
  <pre><code>urlpatterns= patterns('authenticate.views', url(r'^login/$','login'),)
  </code></pre>
  
  <hr>
  
  <h2>login.html</h2>
  
  <pre><code>{{ form }}
  {% url authenticate.views.login %} &lt; --- Error comes here
  </code></pre>
  
  <hr>
  
  <p>in the views:</p>
  
  <pre><code>return render_to_response('login.html',{'form':form},context_instance=RequestContext(request),  )
  </code></pre>
  
  <hr>
  
  <p>Doesn't also work with:</p>
  
  <pre><code> {% url authenticate.views.login %}
   {% url 'authenticate.views.login' %}
   {% url "authenticate.views.login" %}
  </code></pre>
  
  <hr>
  
  <p>This is on django 1.4; what possibly I'm doing wrong, or what do I miss in that version of django?</p>
  
  <p>Thanks in Advance!</p>
  
  <hr>
  
  <h2>Update:</h2>
  
  <p>I can also add that using reverse in my views doesn't work and gives me the same error above:</p>
  
  <pre><code>from django.core.urlresolvers import reverse
  
  result = reverse('django.contrib.auth.views.password_reset')         
  HttpResponse(result)
  </code></pre>
  
  <p><em>Error:</em> </p>
  
  <blockquote>
    <p>AttributeError at /abc/ 'str' object has no attribute 'regex'</p>
  </blockquote>