mapping includes = patterns(",
def category(request, slug):
slug = slug.split('/')[-1]
requested_category = get_object_or_404(Category, slug=slug)
def product_page(request, slug):
item = get_object_or_404(Product, slug=slug)
Now as you can see the url categories from the product url I know very strange, in the category can't be numbers (may in fact), and the goods definitely the figure is.
url categories up to three levels:
So the question is, where I took a wrong turn and how to get to the light?