title: named urls of the form {%url 'somenamedurl' %} in django not working
body: <p>That named url worked before, i put another django project and installed few packages like pyjasper etc. My bad I didnt do virtualenv.</p>
  
  <p>Now the other project is not important. Current version of django I am using is 1.6.2.
  I am not able to trace the error.</p>
  
  <p>It says error rendering </p>
  
  <pre><code>SyntaxError at /dashboard/
  invalid syntax (views.py, line 7)
  </code></pre>
  
  <p>Error during template rendering
  In template D:\djangoprojects\prmanager\templates\menu.html, error at line 3</p>
  
  <pre><code>1   {% load static %}
  2   &lt;li class="active"&gt;
  3       &lt;a href="{% url 'dashboard' %}"&gt;
  4           &lt;i class="fa fa-dashboard"&gt;&lt;/i&gt; &lt;span&gt;Dashboard&lt;/span&gt;
  5       &lt;/a&gt;
  6   &lt;/li&gt;
  7   
  8   &lt;li class="treeview"&gt;
  9       &lt;a href="#"&gt;
  10          &lt;i class="fa fa-folder"&gt;&lt;/i&gt; &lt;span&gt;Work Orders&lt;/span&gt;
  11          &lt;i class="fa fa-angle-left pull-right"&gt;&lt;/i&gt;
  12      &lt;/a&gt;
  13      &lt;ul class="treeview-menu"&gt;
  </code></pre>
  
  <p>Notice line number 3. I tried named them with quotes and without.</p>
  
  <p>Not able to find which views.py its talking about. Because in the dashboard app, there is no line no 7 in views.py</p>
  
  <p>Can somebody throw some light as to where to look for the bug. If this info is not sufficient, please let me know and I will post the same. </p>
  
  <p>What I do know is, what was working before, stopped working.</p>
  
  <p>Edit 
  urls.py</p>
  
  <pre><code>urlpatterns = patterns('',
      # Examples:
      # url(r'^$', 'prmanager.views.home', name='home'),
      # url(r'^blog/', include('blog.urls')),
  
      url(r'^dashboard/', include('dashboard.urls')),
  
      url(r'^materials/', include('materials.urls')),
      url(r'^suppliers/', include('suppliers.urls')),
      url(r'^purchaserequest/', include('purchaserequest.urls')),
      url(r'^purchaseorder/', include('purchaseorder.urls'), name="purchaseorder"),
      url(r'^admin/', include(admin.site.urls)),
  
      url(r'^getSuppliersJson/', 'commontools.tools.getSuppliersJson', name="getSuppliersJson"),
      url(r'^getPOJson/', 'commontools.tools.getPOJson', name="getPOJson"),
  
  
  ) + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
  </code></pre>
  
  <p>Dashboard app's urls.py</p>
  
  <pre><code>from django.conf.urls import patterns, url
  
  urlpatterns = patterns('dashboard.views',   
      url(r'^$', 'dashboard', name="dashboard"),
      #url(r'^newpurchaserequest/', 'newpurchaserequest', name="newpurchaserequest"),
  )
  </code></pre>