text: from django.conf.urls import patterns, include, url
  from django.contrib import admin
  
  urlpatterns = patterns('product.views',
  	url(r'^$', 'view_all', name='view_all'), # displays all products
  	url(r'category/(?P<category>[-\w]+)$', 'view_by_category', name='product_in_category'), # displays products on category basis
  	url(r'product/(?P<slug>[-\w]+)$', 'product', name='product'), # single product page
  	url(r'rate/(?P<slug>[-\w]+)/(?P<rating>\d+)$', 'rate_product', name='rate_product'), # single product page
  )
  