title: how to write urls.py in django 1.10
body: <p>urls.py file which is in 1.1 version of Django :-</p>
  
  <pre><code> urlpatterns = patterns('ecomstore.catalog.views',
      (r'^category/(?P&lt;category_slug&gt;[-\w]+)/$','show_category',
          {'template_name':'catalog/category.html'},'catalog_category'),
   )
  </code></pre>
  
  <p>which I understood that first argument id prefix to all views. next argument is url which has four argument one is url string(regex),second is view , third is dict passing template name and fourth is location of category.</p>
  
  <p><strong>How to write it in Django 1.10
  is following it correct way:-</strong></p>
  
  <pre><code>from django.conf.urls import url
  from ecommstore.catalog.views import *
  urlpatterns = [
  url(r'^category/(?P&lt;category_slug&gt;[-\w]+)/$','show_category',
          {'template_name':'catalog/category.html'},'catalog_category'),
   ]
  </code></pre>